product_sale_price_from_pricelist: remove redundant filter

This commit is contained in:
Luis 2025-12-19 09:22:00 +01:00
parent d5342c73fb
commit d43991240a
2 changed files with 0 additions and 16 deletions

View file

@ -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 = (

View file

@ -73,10 +73,6 @@
name="products_updated_filter"
domain="[('last_purchase_price_updated', '=', True), ('last_purchase_price_compute_type', '!=', 'manual_update')]"
/>
<filter string="Different Theoritical Price"
name="products_diff_theoritical_filter"
domain="[('price_differs', '=', True)]"
/>
</xpath>
</field>
</record>