[FIX] - include date_end in the period if the product is_autorenew

This commit is contained in:
sbejaoui
2018-11-30 17:16:55 +01:00
committed by Abraham Anes
parent f13cc3d484
commit dc4d94591a
2 changed files with 11 additions and 6 deletions

View File

@@ -129,7 +129,7 @@ class TestSaleOrder(TransactionCase):
self.order_line1.recurring_invoicing_type,
self.product1.recurring_invoicing_type,
)
self.assertEqual(self.order_line1.date_end, Date.to_date('2019-01-01'))
self.assertEqual(self.order_line1.date_end, Date.to_date('2018-12-31'))
def test_check_contract_sale_partner(self):
"""Can't link order line to a partner contract different then the