diff --git a/l10n_mx_edi_addenda_audi/models/account_move.py b/l10n_mx_edi_addenda_audi/models/account_move.py index 268684041..5c6c8d5fd 100644 --- a/l10n_mx_edi_addenda_audi/models/account_move.py +++ b/l10n_mx_edi_addenda_audi/models/account_move.py @@ -7,6 +7,11 @@ class AccountMove(models.Model): audi_business_unit = fields.Char(string="Business Unit") audi_applicant_email = fields.Char(string="Applicant email") audi_flag = fields.Boolean(compute="_compute_audi_flag", store=True) + audi_tax_code = fields.Char(string="Tax Code") + audi_fiscal_document_type = fields.Char(string="Fiscal Document Type") + audi_document_type = fields.Char(string="Document Type") + audi_supplier_email = fields.Char(string="Supplier Email") + audi_supplier_number = fields.Char(string="Supplier Number") @api.depends("partner_id.l10n_mx_edi_addenda") def _compute_audi_flag(self): diff --git a/l10n_mx_edi_addenda_audi/views/account_move.xml b/l10n_mx_edi_addenda_audi/views/account_move.xml index 2a58239d8..bf7d43195 100644 --- a/l10n_mx_edi_addenda_audi/views/account_move.xml +++ b/l10n_mx_edi_addenda_audi/views/account_move.xml @@ -11,6 +11,14 @@ + + + + + diff --git a/l10n_mx_edi_addenda_audi/views/l10n_mx_edi_addenda_audi.xml b/l10n_mx_edi_addenda_audi/views/l10n_mx_edi_addenda_audi.xml index b8e8c5dad..7b6251995 100644 --- a/l10n_mx_edi_addenda_audi/views/l10n_mx_edi_addenda_audi.xml +++ b/l10n_mx_edi_addenda_audi/views/l10n_mx_edi_addenda_audi.xml @@ -4,28 +4,26 @@ xmlns:S="http://www.Audi.net.mx/Addenda/S" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.Audi.net.mx/Addenda/S S.xsd" - codigoImpuesto="D2" - tipoDocumentoFiscal="FA" + t-att-codigoImpuesto="record.audi_tax_code" + t-att-tipoDocumentoFiscal="record.audi_fiscal_document_type" version="1.0" - tipoDocumento="S" + t-att-tipoDocumento="record.audi_document_type" > - -