(self)
return res
Make a choice for general invoice type

        Returns:
            int: 1 (National), 2 (Intracom), 3 (Export)
Make a choice for general invoice type
Make a choice for general invoice type
def _get_sii_gen_type(self):
        """Make a choice for general invoice type

        Returns:
            int: 1 (National), 2 (Intracom), 3 (Export)
        """
        self.ensure_one()
        partner_ident = self.fiscal_position_id.sii_partner_identification_type
        if partner_ident:
            res = int(partner_ident)
        elif self.fiscal_position_id.name == "Régimen Intracomunitario":
            res = 2
        elif self.fiscal_position_id.name == "Régimen Extracomunitario":
            res = 3
        else:
            res = 1
        return res
def _get_sii_gen_type ( self ) : self . ensure_one ( ) partner_ident = self . fiscal_position_id . sii_partner_identification_type if partner_ident : res = int ( partner_ident ) elif self . fiscal_position_id . name == "Régimen Intracomunitario": res = 2 elif self . fiscal_position_id . name == "Régimen Extracomunitario": res = 3 else : res = 1 return res