Skip to Content
Menu
This question has been flagged
1 Reply
2444 Views

within our custom modul we add some custom Actions to the Dropdown using:

   <act_window id="launch_session_wizard_xyz"
               name="Stornieren"
               src_model="x_dummy.dummy"
                view_type="form"
               res_model="x_dummy.storno_wizard"
               view_mode="form"
               target="new"
               key2="client_action_multi"/>

How can we achieve that this Dropdown-action only is visible depending on an attribute?


For Buttons i can use the "attrs"-Attribute but i don`t know how this can be achieved with Action DropDown Elements

<button string="Test"  ype="object" name="dummy_method" class="oe_read_only" attrs="{'invisible':[('allow_helper_var','=',False)]}"/>

Avatar
Discard
Author Best Answer

nobody any ideas?

are there other workarounds for such solution? i don`t want to use a button within the form

Avatar
Discard