~therp-nl/therp-addons/6.1-web_mode_visibility_separator_use_override

« back to all changes in this revision

Viewing changes to edi_company_control_sale/data/edi_data.xml

  • Committer: Stefan Rijnhart
  • Date: 2012-02-26 10:03:36 UTC
  • Revision ID: stefan@therp.nl-20120226100336-ircgvog50hil7o69
[ADD] EDI Company control modules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" ?>
 
2
<openerp>
 
3
    <data>
 
4
        <!-- Replace 'code' field on EDI Export + Send email Action,
 
5
             adding condition on the company's 'Enable EDI sale order' field
 
6
        -->
 
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>
 
9
        </record>
 
10
    </data>
 
11
</openerp>