Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5179 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Tác giả

<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>

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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;

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 12 21
23842
2
thg 2 24
1613
1
thg 3 15
8613
2
thg 9 21
10302
1
thg 12 20
4749