From 17533bd89b77d0f3dddaf480b70b0c18b6cb2630 Mon Sep 17 00:00:00 2001 From: Nikul Chaudhary Date: Fri, 13 Dec 2019 13:29:18 +0530 Subject: [PATCH] [FIX] Fixed Travis --- contract_sale/models/contract.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contract_sale/models/contract.py b/contract_sale/models/contract.py index e5773ac9..845908db 100644 --- a/contract_sale/models/contract.py +++ b/contract_sale/models/contract.py @@ -7,12 +7,14 @@ class ContractContract(models.Model): @api.multi def _prepare_recurring_invoices_values(self, date_ref=False): - invoices_values = super(ContractContract, self)._prepare_recurring_invoices_values(date_ref=date_ref) + invoices_values = super(ContractContract, self).\ + _prepare_recurring_invoices_values(date_ref=date_ref) return invoices_values def _compute_sale_order_count(self): super(ContractContract, self)._compute_sale_order_count() - contract_count = self.contract_line_ids.mapped('sale_order_line_id.order_id.contract_id') + contract_count = self.contract_line_ids.\ + mapped('sale_order_line_id.order_id.contract_id') self.sale_order_count += contract_count @api.multi