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

hi all
i created a report in odoo 14 but i want to trigger only from button i did it but now i want to hide from print menu .... Thanks

<record id="report_export_sale_order" model="ir.actions.report">
<field name="name">Print Packing List</field>
<field name="model">sale.order</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">sales_enhancement.report_export_so</field>
<field name="report_file">sales_enhancement.report_export_so</field>
<field name="binding_model_id" ref="model_sale_order"/>
<field name="binding_type">report</field>
</record>
อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด
<field name="binding_model_id" eval="False"/>
อวตาร
ละทิ้ง

Thanks, you helped me a lot with sale.action_report_saleorder report we do not need.)

This works in Version 13.0

คำตอบที่ดีที่สุด

Hi,

According to the document says you should define binding_type to action.

https://www.odoo.com/documentation/14.0/reference/actions.html#bindings

Or seeing from odoo source code, don't include the definition of binding_model_id field in your xml.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ย. 24
2221
1
พ.ค. 23
2868
1
ก.ย. 21
5441
0
ม.ค. 25
1087
1
ส.ค. 23
3586