@@ -347,27 +347,21 @@ def _get_sii_gen_type(self):
347347 res = 1
348348 return res
349349
350- def _is_aeat_simplified_invoice (self ):
351- """Inheritable method to allow control when an
352- invoice are simplified or normal"""
353- partner = self ._aeat_get_partner ()
354- return partner .aeat_simplified_invoice
355-
356350 def _aeat_check_exceptions (self ):
357351 """Inheritable method for exceptions control when sending SII invoices."""
358352 res = super ()._aeat_check_exceptions ()
359353 if self .company_id .sii_enabled :
360354 gen_type = self ._get_sii_gen_type ()
361355 partner = self ._aeat_get_partner ()
362356 country_code = self ._get_aeat_country_code ()
363- is_simplified_invoice = self ._is_aeat_simplified_invoice ()
357+ is_unidentified_document = self ._is_aeat_unidentified_document ()
364358 if (
365359 (gen_type != 3 or country_code == "ES" )
366360 and not partner .vat
367361 and not (
368362 partner .aeat_identification_type and partner .aeat_identification
369363 )
370- and not is_simplified_invoice
364+ and not is_unidentified_document
371365 ):
372366 raise UserError (_ ("The partner has not a VAT configured." ))
373367 if not self .sii_enabled :
@@ -697,7 +691,7 @@ def _get_aeat_invoice_dict_out(self, cancel=False):
697691 company = self .company_id
698692 fiscal_year = self ._get_document_fiscal_year ()
699693 period = self ._get_document_period ()
700- is_simplified_invoice = self ._is_aeat_simplified_invoice ()
694+ is_unidentified_document = self ._is_aeat_unidentified_document ()
701695 serial_number = self ._get_document_serial_number ()
702696 inv_dict = {
703697 "IDFactura" : {
@@ -726,7 +720,7 @@ def _get_aeat_invoice_dict_out(self, cancel=False):
726720 if self .sii_macrodata :
727721 inv_dict ["FacturaExpedida" ].update (Macrodato = "S" )
728722 exp_dict = inv_dict ["FacturaExpedida" ]
729- if not is_simplified_invoice :
723+ if not is_unidentified_document :
730724 # Simplified invoices don't have counterpart
731725 exp_dict ["Contraparte" ] = {
732726 "NombreRazon" : partner .name [0 :120 ],
0 commit comments