From ec9f5a572c08afd8369c25d9bf40c3aa76d3cd65 Mon Sep 17 00:00:00 2001 From: snt Date: Wed, 11 Feb 2026 17:26:14 +0100 Subject: [PATCH] [FIX] product_sale_price_from_pricelist: Fix view syntax for Odoo 18 - Replace attrs syntax with new invisible attribute format - Fix settings view inheritance to use sale.res_config_settings_view_form - Add configuration setting in Sales > Pricing section - Place automatic price pricelist setting after standard pricelist config --- .../views/product_view.xml | 67 ++++++++++++------- 1 file changed, 42 insertions(+), 25 deletions(-) diff --git a/product_sale_price_from_pricelist/views/product_view.xml b/product_sale_price_from_pricelist/views/product_view.xml index 6b88906..eddea17 100644 --- a/product_sale_price_from_pricelist/views/product_view.xml +++ b/product_sale_price_from_pricelist/views/product_view.xml @@ -1,4 +1,4 @@ - + @@ -9,18 +9,25 @@ - last_purchase_price_compute_type != 'manual_update' + last_purchase_price_compute_type != 'manual_update' - - - + + + - + @@ -29,31 +36,40 @@ product.template.tree.price.automatic product.template - + - - + + - product.print.supermarket.res.config.settings.form + product.sale.price.pricelist.res.config.settings.form res.config.settings - - - -
-
+ + + +
+ Select the pricelist used to calculate sale prices from last purchase prices +
-
+
-
+ @@ -64,7 +80,8 @@ - @@ -73,4 +90,4 @@
-
\ No newline at end of file +