From d2a08d6238aaeb995aa2a3c7183037a50136dca4 Mon Sep 17 00:00:00 2001 From: luis Date: Mon, 3 Mar 2025 12:26:47 +0100 Subject: [PATCH] product_print_category_supermarket: strings for price labels configurable --- .../models/product_print_category.py | 2 ++ .../views/product_print_category.xml | 2 ++ .../views/report_pricetag_normal.xml | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/product_print_category_supermarket/models/product_print_category.py b/product_print_category_supermarket/models/product_print_category.py index 7f74578..ac7bd6c 100644 --- a/product_print_category_supermarket/models/product_print_category.py +++ b/product_print_category_supermarket/models/product_print_category.py @@ -6,3 +6,5 @@ class ProductPrintCategorySupermarket(models.Model): show_ref = fields.Boolean(string="Show Product Code") show_barcode = fields.Boolean(string="Show Product Barcode") + price_label = fields.Char(string="Members Price Label", default="PVS") + price_label_public = fields.Char(string="Public Price Label", default="PVP") diff --git a/product_print_category_supermarket/views/product_print_category.xml b/product_print_category_supermarket/views/product_print_category.xml index 6a4e5b7..7878224 100644 --- a/product_print_category_supermarket/views/product_print_category.xml +++ b/product_print_category_supermarket/views/product_print_category.xml @@ -8,6 +8,8 @@ + + diff --git a/product_print_category_supermarket/views/report_pricetag_normal.xml b/product_print_category_supermarket/views/report_pricetag_normal.xml index 83c157f..bef20dc 100644 --- a/product_print_category_supermarket/views/report_pricetag_normal.xml +++ b/product_print_category_supermarket/views/report_pricetag_normal.xml @@ -25,7 +25,7 @@
- PVS + - PVP +