summaryrefslogtreecommitdiff
path: root/addons/sale/tests/test_reinvoice.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/sale/tests/test_reinvoice.py')
-rw-r--r--addons/sale/tests/test_reinvoice.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/addons/sale/tests/test_reinvoice.py b/addons/sale/tests/test_reinvoice.py
index 6ba53f7e24b..56e887fa9ce 100644
--- a/addons/sale/tests/test_reinvoice.py
+++ b/addons/sale/tests/test_reinvoice.py
@@ -26,7 +26,12 @@ class TestReInvoice(TestSaleCommon):
'pricelist_id': cls.company_data['default_pricelist'].id,
})
- cls.AccountMove = cls.env['account.move'].with_context(default_move_type='in_invoice', mail_notrack=True, mail_create_nolog=True)
+ cls.AccountMove = cls.env['account.move'].with_context(
+ default_move_type='in_invoice',
+ default_invoice_date=cls.sale_order.date_order,
+ mail_notrack=True,
+ mail_create_nolog=True,
+ )
def test_at_cost(self):
""" Test vendor bill at cost for product based on ordered and delivered quantities. """