Report 根据odoo12中的状态在打印菜单中隐藏报告

Report 根据odoo12中的状态在打印菜单中隐藏报告,report,odoo,qweb,odoo-12,Report,Odoo,Qweb,Odoo 12,需要根据odoo12中的状态隐藏qweb报告,该报告必须仅在完成状态下可用 <report id="action_report_gate_pass" model="bi.gate.pass" string="Gate Pass" report_type="qweb-pdf" name="bi_gate_pass.report_gate_pass" file="bi_gate_pass.repor

需要根据odoo12中的状态隐藏qweb报告,该报告必须仅在完成状态下可用

<report
        id="action_report_gate_pass"
        model="bi.gate.pass"
        string="Gate Pass"
        report_type="qweb-pdf"
        name="bi_gate_pass.report_gate_pass"
        file="bi_gate_pass.report_gate_pass"
    />


任何将属性或域添加到报告操作的方法

都将报告限制为特定组。他要求基于状态,因此在按钮打印的末尾添加属性,尽管如此简单is@Navi他在行动报告中要求这样做,我只是做了一个简单的回答suggestion@Navi你能为这个写剧本吗?谢谢