Compare commits

...

2 Commits

Author SHA1 Message Date
Bernat Brunet 83e18dc1fa Fix bug when set the deafult facturae_service. It's s selction and it's
useed as a m2o. Don't have ID, it's not berowseble, is an string.

Task: #161646
2023-08-09 14:13:30 +02:00
Bernat Brunet 2a1698bc51 Add in party address the differents basics way that the facrturea could be
send. In case it wil be sned throw any platform.
2023-08-09 13:30:45 +02:00
5 changed files with 63 additions and 1 deletions

View File

@ -843,7 +843,7 @@ class GenerateFacturae(Wizard):
config = Configuration(1)
if config.facturae_service:
default['service'] = config.facturae_service.id
default['service'] = config.facturae_service
if config.facturae_certificate:
default['certificate'] = config.facturae_certificate.id

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -8,6 +8,9 @@
<field name="facturae_person_type"/>
<label name="facturae_residence_type"/>
<field name="facturae_residence_type"/>
<label name="facturae_outchannel"/>
<field name="facturae_outchannel"/>
<newline/>
<label name="oficina_contable"/>
<field name="oficina_contable"/>
<label name="organo_gestor"/>