- Don't compute quantity for all products - Pass context when calling function - Use setdefault instead of searching key - Remove form view for quantity and use the view from product modules (more flexible for futher inherits) - Fix some quidelines
21 lines
725 B
XML
21 lines
725 B
XML
<?xml version="1.0"?>
|
|
<tryton>
|
|
<data>
|
|
<record model="ir.ui.view" id="product_view_tree_qty">
|
|
<field name="model">product.product</field>
|
|
<field name="type">tree</field>
|
|
<field name="arch" type="xml">
|
|
<![CDATA[
|
|
<tree string="Products">
|
|
<field name="name" select="1"/>
|
|
<field name="code" select="1"/>
|
|
<field name="quantity" select="2"/>
|
|
<field name="default_uom" select="2"/>
|
|
<field name="active" select="2"/>
|
|
</tree>
|
|
]]>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</tryton>
|