Odoo Help

Welcome!

This community 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.

0

How to hide a group inside a form using module?

By
willie ho
on 10/19/14, 10:32 PM 569 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?

0
Biztech
On 10/20/14, 1:31 AM

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>

 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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