Skip to content
Open
5 changes: 5 additions & 0 deletions contract/views/contract.xml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,11 @@
options="{'color_field': 'color'}"
/>
<field name="company_id" groups="base.group_multi_company" />
<field name="code" optional="hide" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This field is showed in:
https://github.com/OCA/contract/pull/1386/changes#diff-824d27cca50c885b1fb2a66f39e66227a4ea197d6be188550c503be3c1e9e75dR419
Add optional="show" in existing field if you want hide:

<field name="date_start" optional="hide" />
<field name="date_end" optional="hide" />
<field name="invoice_partner_id" optional="hide" />
<field name="commercial_partner_id" optional="hide" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is best to add these fields after partner_id to keep all related fields together.

</list>
</field>
</record>
Expand Down
Loading