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