I am creating a module to change the display of a form, I know how to hide a field from the form but not a whole group
What should I put to hide a whole group of a form?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I am creating a module to change the display of a form, I know how to hide a field from the form but not a whole group
What should I put to hide a whole group of a form?
Hi,
To hide the whole group based on user, you may provide groups for the group tag. |
E.g
<group string="Configure your Fiscal Year" groups="account.group_account_user">
<field name="has_default_company" invisible="1" />
<field name="period"/>
</group>
You may also apply attrs same as field in group tag if required in your case.
e.g
<group attrs="{'readonly':[('state','=','valid')]}" string="Currency">
<field name="currency_id" invisible="1"/>
<field name="amount_currency" widget="monetary" options="{'currency_field': 'currency_id'}"/>
</group>
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up