Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3464 มุมมอง

? 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
209
2
ต.ค. 25
360
Odoo + amazon connector แก้ไขแล้ว
2
ก.ย. 25
714
1
ก.ย. 25
936