Odoo Help


How to hide a group inside a form using module?

willie ho
on 10/19/14, 10:32 PM 976 views

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?

Maulik Shah
On 10/20/14, 1:31 AM


To hide the whole group based on user, you may provide groups for the group tag. |
                    <group string="Configure your Fiscal Year" groups="account.group_account_user">
                        <field name="has_default_company" invisible="1" />
                        <field name="period"/>
You may also apply attrs same as field in group tag if required in your case. 
                                    <group attrs="{'readonly':[('state','=','valid')]}" string="Currency">
                                        <field name="currency_id" invisible="1"/>
                                        <field name="amount_currency" widget="monetary" options="{'currency_field': 'currency_id'}"/>


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/19/14, 10:32 PM
Seen: 976 times
Last updated: 3/16/15, 8:10 AM