From d43991240a26ee1a92adbd1d88b6aad8e5618ce4 Mon Sep 17 00:00:00 2001 From: luis Date: Fri, 19 Dec 2025 09:22:00 +0100 Subject: [PATCH] product_sale_price_from_pricelist: remove redundant filter --- .../models/product_template.py | 12 ------------ .../views/product_view.xml | 4 ---- 2 files changed, 16 deletions(-) diff --git a/product_sale_price_from_pricelist/models/product_template.py b/product_sale_price_from_pricelist/models/product_template.py index 0ac681b..ad79bd0 100644 --- a/product_sale_price_from_pricelist/models/product_template.py +++ b/product_sale_price_from_pricelist/models/product_template.py @@ -46,18 +46,6 @@ class ProductTemplate(models.Model): company_dependent=True, ) - price_differs = fields.Boolean( - string="Price Differs", compute="_compute_price_differs", store=True - ) - - @api.depends("list_price", "list_price_theoritical") - def _compute_price_differs(self): - for product in self: - product.price_differs = ( - product.list_price != product.list_price_theoritical - and product.last_purchase_price_compute_type != "manual_update" - ) - def _compute_theoritical_price(self): pricelist_obj = self.env["product.pricelist"] pricelist_id = ( diff --git a/product_sale_price_from_pricelist/views/product_view.xml b/product_sale_price_from_pricelist/views/product_view.xml index b5d530b..eca9ce8 100644 --- a/product_sale_price_from_pricelist/views/product_view.xml +++ b/product_sale_price_from_pricelist/views/product_view.xml @@ -73,10 +73,6 @@ name="products_updated_filter" domain="[('last_purchase_price_updated', '=', True), ('last_purchase_price_compute_type', '!=', 'manual_update')]" /> -