From f2597b3220b3fdbcff7121a9cd4cc5844c62c0d5 Mon Sep 17 00:00:00 2001 From: houssine Date: Sat, 8 Jun 2019 15:38:25 +0200 Subject: [PATCH] [PEP8] fix pep8 warning --- easy_my_coop/models/operation_request.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/easy_my_coop/models/operation_request.py b/easy_my_coop/models/operation_request.py index f9eddea..28b2dc7 100644 --- a/easy_my_coop/models/operation_request.py +++ b/easy_my_coop/models/operation_request.py @@ -115,7 +115,8 @@ class operation_request(models.Model): def get_total_share_dic(self, partner): total_share_dic = {} - share_products = self.env['product.template'].search([('is_share', '=', True)]) + prod_template_obj = self.env['product.template'] + share_products = prod_template_obj.search([('is_share', '=', True)]) for share_product in share_products: total_share_dic[share_product.id] = 0