Remove colors attribute + product form views

This commit is contained in:
Raimon Esteve 2016-12-23 10:20:30 +01:00
parent 81177bfe23
commit ced159aa1b
7 changed files with 3 additions and 46 deletions

View File

@ -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()

View File

@ -9,12 +9,6 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig
<field name="type">tree</field>
<field name="name">template_qty_tree</field>
</record>
<record model="ir.ui.view" id="template_qty_view_form">
<field name="model">product.template</field>
<field name="type" eval="None"/>
<field name="inherit" ref="product.template_view_form"/>
<field name="name">template_qty_form</field>
</record>
<record model="ir.action.act_window" id="act_template_qty_form">
<field name="name">Qty Products</field>
@ -46,7 +40,6 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig
</record>
<record model="ir.ui.view" id="product_qty_view_form">
<field name="model">product.product</field>
<field name="type" eval="None"/>
<field name="inherit" ref="product.product_view_form"/>
<field name="name">product_qty_form</field>
</record>
@ -97,7 +90,6 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig
<data depends="product_manufacturer">
<record model="ir.ui.view" id="template_qty_manufacturer_view_tree">
<field name="model">product.template</field>
<field name="type" eval="None"/>
<field name="inherit" ref="template_qty_view_tree"/>
<field name="name">template_qty_manufacturer_tree</field>
</record>
@ -106,7 +98,6 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig
<data depends="purchase">
<record model="ir.ui.view" id="template_qty_purchase_view_tree">
<field name="model">product.template</field>
<field name="type" eval="None"/>
<field name="inherit" ref="template_qty_view_tree"/>
<field name="name">template_qty_purchase_tree</field>
</record>

View File

@ -1,12 +0,0 @@
<?xml version="1.0"?>
<!-- This file is part of product_kit module for Tryton.
The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/form/field[@name='description']"
position="after">
<label name="quantity"/>
<field name="quantity"/>
<label name="forecast_quantity"/>
<field name="forecast_quantity"/>
</xpath>
</data>

View File

@ -1,12 +0,0 @@
<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<data>
<xpath expr="/form/notebook/page[@id='general']/field[@name='cost_price_method']"
position="after">
<label name="quantity"/>
<field name="quantity"/>
<label name="forecast_quantity"/>
<field name="forecast_quantity"/>
</xpath>
</data>

View File

@ -2,7 +2,7 @@
<!-- This file is part product_qty module for Tryton.
The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name=&quot;category&quot;]" position="after">
<xpath expr="/tree/field[@name=&quot;forecast_quantity&quot;]" position="after">
<field name="manufacturer"/>
</xpath>
</data>

View File

@ -2,7 +2,7 @@
<!-- This file is part product_qty module for Tryton.
The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name=&quot;category&quot;]" position="after">
<xpath expr="/tree/field[@name=&quot;categories&quot;]" position="after">
<field name="product_suppliers" tree_invisible="1"/>
</xpath>
</data>

View File

@ -6,9 +6,9 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig
<field name="list_price"/>
<field name="cost_price"/>
<field name="type"/>
<field name="category"/>
<field name="default_uom"/>
<field name="quantity"/>
<field name="forecast_quantity"/>
<field name="active" tree_invisible="1"/>
<field name="categories" tree_invisible="1"/>
</tree>