4
<!-- Replace 'code' field on EDI Export + Send email Action,
5
adding condition on the company's 'Enable EDI sale order' field
7
<record id="sale.ir_actions_server_edi_sale" model="ir.actions.server">
8
<field name="code">if object.company_id.enable_edi_sale and not object.partner_id.opt_out: object.edi_export_and_email(template_ext_id='sale.email_template_edi_sale', context=context)</field>