Fix tests.
This commit is contained in:
parent
085f5dbfac
commit
675d25d338
|
@ -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 = [
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue