Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3443 Переглядів

? how can i hide report actions and make it appears just in  work  flow specific  state 

Аватар
Відмінити
Найкраща відповідь

Hi,

Try this code


<record id="view_custom_model_form" model="ir.ui.view">
<field name="name">custom.model.form</field>
<field name="model">custom.model</field>
    <field name="inherit_id" ref="base.view_partner_form" />
    <field name="arch" type="xml">
            <!-- Modify the existing report actions -->
<xpath expr="//button[@name='action_print_report']" position="attributes">
<attribute name="groups">module.group_report_access</attribute>
<attribute name="attrs">{"invisible": [["state", "!=", "specific_state"]]}</attribute>

                <!-- You can add your own domains and default conditions under the attribute -->
            </xpath>
    </field>
</record>

Hope it helps

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
жовт. 25
3
0
жовт. 25
166
2
жовт. 25
326
Odoo + amazon connector Вирішено
2
вер. 25
700
1
вер. 25
919