diff --git a/locale/ca.po b/locale/ca.po index a941c7d..7a8353d 100644 --- a/locale/ca.po +++ b/locale/ca.po @@ -94,6 +94,10 @@ msgctxt "field:account.tax.template,report_type:" msgid "Report Type" msgstr "Tipus informe" +msgctxt "field:party.address,facturae_outchannel:" +msgid "Send Channel Used" +msgstr "Canal d'enviament" + msgctxt "field:party.address,facturae_person_type:" msgid "Person Type" msgstr "Tipus persona" @@ -805,6 +809,26 @@ msgctxt "selection:company.company,facturae_residence_type:" msgid "Resident in other EU country" msgstr "Resident a la Unió Europea (excepte Espanya)" +msgctxt "selection:party.address,facturae_outchannel:" +msgid "Service Default" +msgstr "Per defecte de la plataforma" + +msgctxt "selection:party.address,facturae_outchannel:" +msgid "AOC" +msgstr "AOC" + +msgctxt "selection:party.address,facturae_outchannel:" +msgid "FACe" +msgstr "FACe" + +msgctxt "selection:party.address,facturae_outchannel:" +msgid "FACeB2B" +msgstr "FACeB2B" + +msgctxt "selection:party.address,facturae_outchannel:" +msgid "Osakidetza" +msgstr "Osakidetza" + msgctxt "selection:party.address,facturae_person_type:" msgid "Individual" msgstr "Persona física" diff --git a/locale/es.po b/locale/es.po index 6f70587..0f049d1 100644 --- a/locale/es.po +++ b/locale/es.po @@ -94,6 +94,10 @@ msgctxt "field:company.company,unidad_tramitadora:" msgid "Unidad tramitadora" msgstr "Unidad tramitadora" +msgctxt "field:party.address,facturae_outchannel:" +msgid "Send Channel Used" +msgstr "Canal de envío" + msgctxt "field:party.address,facturae_person_type:" msgid "Person Type" msgstr "Tipo persona" @@ -803,6 +807,26 @@ msgctxt "selection:company.company,facturae_residence_type:" msgid "Resident in other EU country" msgstr "Residente en la Unión Europea (excepto España)" +msgctxt "selection:party.address,facturae_outchannel:" +msgid "Service Default" +msgstr "Per defecte de la plataforma" + +msgctxt "selection:party.address,facturae_outchannel:" +msgid "AOC" +msgstr "AOC" + +msgctxt "selection:party.address,facturae_outchannel:" +msgid "FACe" +msgstr "FACe" + +msgctxt "selection:party.address,facturae_outchannel:" +msgid "FACeB2B" +msgstr "FACeB2B" + +msgctxt "selection:party.address,facturae_outchannel:" +msgid "Osakidetza" +msgstr "Osakidetza" + msgctxt "selection:party.address,facturae_person_type:" msgid "Individual" msgstr "Persona física" diff --git a/party.py b/party.py index 3c9d024..6396f32 100644 --- a/party.py +++ b/party.py @@ -19,6 +19,13 @@ class Address(metaclass=PoolMeta): ('U', 'Resident in other EU country'), ('E', 'Foreigner'), ], 'Residence Type', sort=False) + facturae_outchannel = fields.Selection([ + (None, 'Service Default'), + ('AOC', 'AOC'), + ('FACe', 'FACe'), + ('FACeB2B', 'FACeB2B'), + ('Osakidetza', 'Osakidetza'), + ], 'Send Channel Used', sort=False) oficina_contable = fields.Char('Oficina contable') organo_gestor = fields.Char('Organo gestor') unidad_tramitadora = fields.Char('Unidad tramitadora') @@ -100,3 +107,7 @@ class Address(metaclass=PoolMeta): party.drop_column('organo_gestor') party.drop_column('unidad_tramitadora') party.drop_column('organo_proponente') + + @staticmethod + def default_facturae_outchannel(): + return None diff --git a/view/address_form.xml b/view/address_form.xml index 0f2fab7..1ee0bdc 100644 --- a/view/address_form.xml +++ b/view/address_form.xml @@ -8,6 +8,9 @@