From 76b113ed283cd4a4aff6bdd8ee71a5b4a79f13d3 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 17 Sep 2019 11:27:04 +0200 Subject: [PATCH] Fix crash upon click on "Show History" on product form --- product_usability/models/product.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/product_usability/models/product.py b/product_usability/models/product.py index c068b8b..dc88970 100644 --- a/product_usability/models/product.py +++ b/product_usability/models/product.py @@ -4,7 +4,6 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import models, fields -from odoo.tools.safe_eval import safe_eval class ProductProduct(models.Model): @@ -43,6 +42,5 @@ class ProductProduct(models.Model): self.ensure_one() action = self.env.ref( 'product_usability.product_price_history_action').read()[0] - action['domain'] = safe_eval(action['domain']) - action['domain'].append(('product_id', '=', self.id)) + action['domain'] = [('product_id', '=', self.id)] return action