1
0
Fork 0

In scenario, compute today after module installation to minimize issues if test is executed near midnight.

This commit is contained in:
Albert Cervera i Areny 2023-03-25 01:21:46 +01:00
parent a86bcbc322
commit 831adc0c2c
3 changed files with 1 additions and 4 deletions

View File

@ -15,7 +15,6 @@ Imports::
... create_chart, get_accounts, create_tax
>>> from trytond.modules.account_invoice.tests.tools import \
... set_fiscalyear_invoice_sequences, create_payment_term
>>> today = datetime.date.today()
Install sale_payment_type::
@ -168,7 +167,7 @@ Invoice more than salabled::
>>> line.quantity = 10.0
>>> line.save()
>>> invoice.reload()
>>> invoice.invoice_date = today
>>> invoice.invoice_date = datetime.date.today()
>>> invoice.save()
>>> invoice.click('validate_invoice')
>>> invoice.click('post')

View File

@ -15,7 +15,6 @@ Imports::
... create_chart, get_accounts, create_tax
>>> from trytond.modules.account_invoice.tests.tools import \
... set_fiscalyear_invoice_sequences, create_payment_term
>>> today = datetime.date.today()
Install sale_payment_type and account_bank::

View File

@ -15,7 +15,6 @@ Imports::
... create_chart, get_accounts, create_tax
>>> from trytond.modules.account_invoice.tests.tools import \
... set_fiscalyear_invoice_sequences, create_payment_term
>>> today = datetime.date.today()
Install sale_payment_type::