From 83c4e095f612e8066fc81126bdd632a0db667be4 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 2 Mar 2017 09:18:12 +0100 Subject: [PATCH] Minor changes --- product_usability/product.py | 2 ++ sale_purchase_no_product_template_menu/view.xml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/product_usability/product.py b/product_usability/product.py index b5ebd67..ce91ef8 100644 --- a/product_usability/product.py +++ b/product_usability/product.py @@ -14,6 +14,7 @@ class ProductTemplate(models.Model): list_price = fields.Float(track_visibility='onchange') sale_ok = fields.Boolean(track_visibility='onchange') purchase_ok = fields.Boolean(track_visibility='onchange') + active = fields.Boolean(track_visibility='onchange') class ProductProduct(models.Model): @@ -22,6 +23,7 @@ class ProductProduct(models.Model): default_code = fields.Char(track_visibility='onchange') barcode = fields.Char(track_visibility='onchange') weight = fields.Float(track_visibility='onchange') + active = fields.Boolean(track_visibility='onchange') price_history_ids = fields.One2many( 'product.price.history', 'product_id', string='Product Price History') diff --git a/sale_purchase_no_product_template_menu/view.xml b/sale_purchase_no_product_template_menu/view.xml index 3393c8b..75d1fce 100644 --- a/sale_purchase_no_product_template_menu/view.xml +++ b/sale_purchase_no_product_template_menu/view.xml @@ -7,7 +7,7 @@ - + Products product.product tree,form,kanban @@ -17,7 +17,7 @@ - +