Add suppliers in tree view (extra depends purchase)

This commit is contained in:
resteve 2015-03-27 14:46:00 +01:00
parent fbe8533e04
commit 9f57d1f288
3 changed files with 17 additions and 0 deletions

View File

@ -87,4 +87,12 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig
<field name="name">template_qty_manufacturer_tree</field>
</record>
</data>
<data depends="purchase">
<record model="ir.ui.view" id="template_qty_purchase_view_tree">
<field name="model">product.template</field>
<field name="inherit" ref="template_qty_view_tree"/>
<field name="name">template_qty_purchase_tree</field>
</record>
</data>
</tryton>

View File

@ -4,5 +4,6 @@ depends:
stock
extras_depend:
product_manufacturer
purchase
xml:
product.xml

View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- 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">
<field name="product_suppliers" tree_invisible="1"/>
</xpath>
</data>