[IMP] base_usability: add insdustry_id in partner tree and search view
Always show insdustry_id on form view, even when is_company=False
This commit is contained in:
@@ -24,6 +24,9 @@
|
|||||||
<xpath expr="//div[hasclass('o_address_format')]/field[@name='city']" position="before">
|
<xpath expr="//div[hasclass('o_address_format')]/field[@name='city']" position="before">
|
||||||
<field name="zip" position="move"/>
|
<field name="zip" position="move"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
<field name="industry_id" position="attributes">
|
||||||
|
<attribute name="attrs"></attribute>
|
||||||
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
@@ -60,6 +63,9 @@
|
|||||||
<field name="phone" position="after">
|
<field name="phone" position="after">
|
||||||
<field name="mobile" optional="show" widget="phone" class="o_force_ltr"/>
|
<field name="mobile" optional="show" widget="phone" class="o_force_ltr"/>
|
||||||
</field>
|
</field>
|
||||||
|
<field name="category_id" position="after">
|
||||||
|
<field name="industry_id" optional="hide"/>
|
||||||
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
@@ -73,6 +79,9 @@
|
|||||||
<!-- for 'ref', change '=' to 'start with' -->
|
<!-- for 'ref', change '=' to 'start with' -->
|
||||||
<attribute name="filter_domain">['|','|',('display_name','ilike',self),('ref','=ilike',self + '%'),('email','ilike',self)]</attribute>
|
<attribute name="filter_domain">['|','|',('display_name','ilike',self),('ref','=ilike',self + '%'),('email','ilike',self)]</attribute>
|
||||||
</field>
|
</field>
|
||||||
|
<filter name="group_country" position="after">
|
||||||
|
<filter name="industry_groupby" string="Industry" context="{'group_by': 'industry_id'}"/>
|
||||||
|
</filter>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user