Fix tests.

This commit is contained in:
Albert Cervera i Areny 2021-04-01 16:45:16 +02:00
parent 085f5dbfac
commit 675d25d338
2 changed files with 4 additions and 3 deletions

View File

@ -21,9 +21,6 @@ from trytond import backend
from trytond.i18n import gettext
from trytond.exceptions import UserError
__all__ = ['Invoice', 'InvoiceLine', 'CreditInvoiceStart', 'CreditInvoice',
'GenerateFacturaeStart', 'GenerateFacturae']
# Get from XSD scheme of Facturae 3.2.1
# http://www.facturae.gob.es/formato/Versiones/Facturaev3_2_1.xml
RECTIFICATIVE_REASON_CODES = [

View File

@ -199,6 +199,8 @@ class TestAccountInvoiceFacturaeCase(ModuleTestCase):
invoice.account = invoice.on_change_with_account()
line1 = InvoiceLine()
line1.company = company
line1.currency = currency
line1.product = product
line1.on_change_product()
line1.on_change_account()
@ -206,6 +208,8 @@ class TestAccountInvoiceFacturaeCase(ModuleTestCase):
line1.unit_price = Decimal('40')
line2 = InvoiceLine()
line2.company = company
line2.currency = currency
line2.account = revenue
line2.on_change_account()
line2.product = product