From 8d39b937a88e6f0537a8420b75a429569e14ea7e Mon Sep 17 00:00:00 2001 From: luis Date: Mon, 24 Feb 2025 20:35:15 +0100 Subject: [PATCH] product_print_category_supermarket: optional show product ref --- .../models/product_print_category.py | 8 ++++++++ .../views/product_print_category.xml | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 product_print_category_supermarket/models/product_print_category.py create mode 100644 product_print_category_supermarket/views/product_print_category.xml diff --git a/product_print_category_supermarket/models/product_print_category.py b/product_print_category_supermarket/models/product_print_category.py new file mode 100644 index 0000000..7f74578 --- /dev/null +++ b/product_print_category_supermarket/models/product_print_category.py @@ -0,0 +1,8 @@ +from odoo import models, fields + + +class ProductPrintCategorySupermarket(models.Model): + _inherit = "product.print.category" + + show_ref = fields.Boolean(string="Show Product Code") + show_barcode = fields.Boolean(string="Show Product Barcode") diff --git a/product_print_category_supermarket/views/product_print_category.xml b/product_print_category_supermarket/views/product_print_category.xml new file mode 100644 index 0000000..6a4e5b7 --- /dev/null +++ b/product_print_category_supermarket/views/product_print_category.xml @@ -0,0 +1,14 @@ + + + + product.print.category.form + product.print.category + + + + + + + + + \ No newline at end of file