Add manufacturer field in search tree view

This commit is contained in:
resteve 2014-11-27 09:47:07 +01:00
parent 1a74d1af0a
commit 4779a0ee92
2 changed files with 13 additions and 0 deletions

View File

@ -3,6 +3,11 @@
copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="party_view_tree">
<field name="model">party.party</field>
<field name="inherit" ref="party.party_view_tree"/>
<field name="name">party_tree</field>
</record>
<record model="ir.ui.view" id="party_view_form">
<field name="model">party.party</field>
<field name="inherit" ref="party.party_view_form"/>

8
view/party_tree.xml Normal file
View File

@ -0,0 +1,8 @@
<?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="/tree/field[@name='vat_code']" position="after">
<field name="manufacturer" tree_invisible="1"/>
</xpath>
</data>