Skip to Content
Menu
This question has been flagged
2 Replies
2006 Views

Dear: 

Please, I need your help to move the industry_id field to the main section of the Contacts form. The field is in:
<page name="sales_purchases" string="Sales &amp; Purchases">

          <group name="container_row_2">

                <group string="Sale" name="sale">

                      <field name="customer"/>

                      <field name="user_id"/>

                </group>

                <group string="Purchase" name="purchase">

                      <field name="supplier"/>

                      </group>

                <group string="Misc">

                      <field name="ref"/>

                      <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>

--------------->      <field name="industry_id" attrs="{'invisible': [('is_company', '=', False)]}" options="{'no_create': True}"/>

                </group>

          </group>

       </page>

and I need to put it below i:



<field name="lang"/>

------------------->

Thanks for advance!

Best regards,

Claudio


Avatar
Discard
Best Answer

Try this:

<field name="industry_id" position="replace" />
<field name="lang" position="after">
  <field name="industry_id" attrs="{'invisible': [('is_company', '=', False)]}" options="{'no_create': True}"/>
</field>

Avatar
Discard
Author Best Answer

It works! Thank you, very much!

Avatar
Discard