[FIX] - fix onchange

This commit is contained in:
sbejaoui
2018-11-29 12:09:04 +01:00
committed by Denis Roussel
parent 9a91ee31b9
commit 0b2d747eb8
2 changed files with 39 additions and 30 deletions

View File

@@ -54,11 +54,12 @@ class TestSaleOrder(TransactionCase):
lambda l: l.product_id == self.product1
)
self.order_line1.date_start = '2018-01-01'
pricelist = self.sale.partner_id.property_product_pricelist.id
self.contract = self.env["account.analytic.account"].create(
{
"name": "Test Contract 2",
"partner_id": self.sale.partner_id.id,
"pricelist_id": self.sale.partner_id.property_product_pricelist.id,
"pricelist_id": pricelist,
"recurring_invoices": True,
"contract_type": "purchase",
"contract_template_id": self.contract_template1.id,