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>