跳至内容
菜单
此问题已终结
1 回复
5214 查看

look code menu report in odoo 14

/" rel="ugc">ir.actions.report">
Commande Outgoing
purchase.order
qweb-pdf
microcred_profile.optesis_outgoing_id
microcred_profile.optesis_outgoing

(object.state in ('draft', 'sent') and 'Request for Quotation - %s' % (object.name) or
'Purchase Order - %s' % (object.name))

report



how use a domaine condition for visibility of this menu 

hide menu using condition state draft ,sent or other

形象
丢弃
编写者

<record id="optesis_report_outgoing_menu" model="ir.actions.report">
<field name="name">Commande Outgoing</field>
<field name="model">purchase.order</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">microcred_profile.optesis_outgoing_id</field>
<field name="report_file">microcred_profile.optesis_outgoing</field>
<field name="print_report_name">
(object.state in ('draft', 'sent') and 'Request for Quotation - %s' % (object.name) or
'Purchase Order - %s' % (object.name))</field>
<field name="binding_model_id" ref="model_purchase_order"/>
<field name="binding_type">report</field>
</record>

最佳答案

Here you are a work around for this:
https://www.odoo.com/forum/help-1/hide-print-option-when-in-draft-154272

形象
丢弃
编写者

Thanks you , but I want not create button in form view ;le bouton je le veux sous la bouton action et effectuer l'operation laba;

相关帖文 回复 查看 活动
4
12月 21
23865
2
2月 24
1660
1
3月 15
8642
2
9月 21
10335
1
12月 20
4784