From bb93aa084cf7c7011271d83f13c046bbd9ea0d37 Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Fri, 23 Dec 2016 10:20:30 +0100 Subject: [PATCH] Remove colors attribute + product form views --- product.py | 10 ---------- product.xml | 9 --------- view/product_qty_form.xml | 12 ------------ view/template_qty_form.xml | 12 ------------ view/template_qty_manufacturer_tree.xml | 2 +- view/template_qty_purchase_tree.xml | 2 +- view/template_qty_tree.xml | 2 +- 7 files changed, 3 insertions(+), 46 deletions(-) delete mode 100644 view/product_qty_form.xml delete mode 100644 view/template_qty_form.xml diff --git a/product.py b/product.py index 0cad56c..cd8f478 100644 --- a/product.py +++ b/product.py @@ -12,11 +12,6 @@ class Template: __metaclass__ = PoolMeta __name__ = 'product.template' - @classmethod - def view_attributes(cls): - return [('/tree', 'colors', - If(Less(Eval('quantity', 1), 1), 'red', 'black'))] - def sum_product(self, name): Location = Pool().get('stock.location') @@ -33,11 +28,6 @@ class Product: __metaclass__ = PoolMeta __name__ = 'product.product' - @classmethod - def view_attributes(cls): - return [('/tree', 'colors', - If(Less(Eval('quantity', 1), 1), 'red', 'black'))] - @classmethod def get_quantity(cls, products, name): pool = Pool() diff --git a/product.xml b/product.xml index 08828c6..90a8635 100644 --- a/product.xml +++ b/product.xml @@ -9,12 +9,6 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig tree template_qty_tree - - product.template - - - template_qty_form - Qty Products @@ -46,7 +40,6 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig product.product - product_qty_form @@ -97,7 +90,6 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig product.template - template_qty_manufacturer_tree @@ -106,7 +98,6 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig product.template - template_qty_purchase_tree diff --git a/view/product_qty_form.xml b/view/product_qty_form.xml deleted file mode 100644 index 57e60fb..0000000 --- a/view/product_qty_form.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - diff --git a/view/template_qty_form.xml b/view/template_qty_form.xml deleted file mode 100644 index 6332476..0000000 --- a/view/template_qty_form.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - diff --git a/view/template_qty_manufacturer_tree.xml b/view/template_qty_manufacturer_tree.xml index 3fb79de..a08dbdd 100644 --- a/view/template_qty_manufacturer_tree.xml +++ b/view/template_qty_manufacturer_tree.xml @@ -2,7 +2,7 @@ - + diff --git a/view/template_qty_purchase_tree.xml b/view/template_qty_purchase_tree.xml index 5252344..cb4dcab 100644 --- a/view/template_qty_purchase_tree.xml +++ b/view/template_qty_purchase_tree.xml @@ -2,7 +2,7 @@ - + diff --git a/view/template_qty_tree.xml b/view/template_qty_tree.xml index 7acde97..e5cda38 100644 --- a/view/template_qty_tree.xml +++ b/view/template_qty_tree.xml @@ -6,9 +6,9 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig - +