[FIX] l10n_es_edi_tbai: FechaOperacion should be set when the invoice date is different than today
closes odoo/odoo#149538 Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
This commit is contained in:
@@ -106,6 +106,7 @@
|
||||
</t>
|
||||
</CabeceraFactura>
|
||||
<DatosFactura t-if="is_emission">
|
||||
<FechaOperacion t-out="format_date(invoice.invoice_date) if format_date(datetime_now) != format_date(invoice.invoice_date) else None"/>
|
||||
<DescripcionFactura t-out="invoice.invoice_origin or 'manual'"/>
|
||||
<DetallesFactura>
|
||||
<IDDetalleFactura t-foreach="invoice_lines" t-as="line_values">
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from base64 import b64encode
|
||||
from datetime import datetime
|
||||
from datetime import datetime, date
|
||||
|
||||
from freezegun import freeze_time
|
||||
from lxml import etree
|
||||
@@ -23,7 +23,7 @@ class TestEdiTbaiXmls(TestEsEdiTbaiCommon):
|
||||
cls.out_invoice = cls.env['account.move'].create({
|
||||
'name': 'INV/01',
|
||||
'move_type': 'out_invoice',
|
||||
'invoice_date': datetime.now(),
|
||||
'invoice_date': date(2022, 1, 1),
|
||||
'partner_id': cls.partner_a.id,
|
||||
'invoice_line_ids': [(0, 0, {
|
||||
'product_id': cls.product_a.id,
|
||||
|
||||
Reference in New Issue
Block a user