In scenario, compute today after module installation to minimize issues if test is executed near midnight.
This commit is contained in:
parent
071e38764e
commit
8fdb3676a2
|
@ -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')
|
||||
|
|
|
@ -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::
|
||||
|
||||
|
|
|
@ -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::
|
||||
|
||||
|
|
Loading…
Reference in New Issue