Skip to Content
मेन्यू
This question has been flagged
3 Replies
2337 Views

This is my odoo 16 code. i want to convert this code to Odoo 17. i want to invisible this button using "invisible" property.


here is my xml code..


<button name="action_test" string="Request test"

                    type="object"

                    attrs="{'invisible': [('state', '!=', 'test2'), 'invisible':[('test_team_ids',

                    '!=',False)]}"

                    class="btn-primary"/>


Avatar
Discard
Best Answer


Avatar
Discard
Best Answer

Hi,

Here is the  updated code:


<button name="action_test" string="Request test" type="object"
        invisible="state != 'test2' or test_team_ids"
        class="btn-primary"/>


Hope it helps


Avatar
Discard
Best Answer

invisible="state != 'test2' or test_team_ids"


For more reference you can search 'invisible=' in odoo17 base code you will get more ideas. 

Avatar
Discard
Related Posts Replies Views Activity
1
अक्तू॰ 24
1747
1
अप्रैल 25
2634
1
मार्च 25
2371
4
अग॰ 24
3810
2
मई 24
7661