(self)
Don't sent secondary DUA invoices to SII.
Don't sent secondary DUA invoices to SII.
Don t sent secondary DUA invoices to SII .
def _compute_sii_enabled(self):
        """Don't sent secondary DUA invoices to SII."""
        super()._compute_sii_enabled()
        for invoice in self.filtered("sii_enabled"):
            dua_fiscal_position_id = self._get_dua_fiscal_position_id(
                invoice.company_id
            )
            if (
                dua_fiscal_position_id
                and invoice.fiscal_position_id.id == dua_fiscal_position_id
                and not invoice.sii_dua_invoice
            ):
                invoice.sii_enabled = False
def _compute_sii_enabled ( self ) : super ( ) . _compute_sii_enabled ( ) for invoice in self . filtered ( "sii_enabled" ) : dua_fiscal_position_id = self . _get_dua_fiscal_position_id ( invoice . company_id ) if ( dua_fiscal_position_id and invoice . fiscal_position_id . id == dua_fiscal_position_id and not invoice . sii_dua_invoice ) : invoice . sii_enabled = False