Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4648 Представления

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;

Related Posts Ответы Просмотры Активность
4
дек. 21
23328
2
февр. 24
1198
1
мар. 15
8070
2
сент. 21
9466
1
дек. 20
4073