~extra-addons-commiter/e-commerce-addons/7.0

« back to all changes in this revision

Viewing changes to sale_payment_method/security/rules.xml

  • Committer: Yannick Vaucher
  • Author(s): arthur.vuillard at akretion
  • Date: 2014-01-14 10:03:35 UTC
  • mfrom: (286.1.1 e-commerce-addons)
  • Revision ID: yannick.vaucher@camptocamp.com-20140114100335-rpzf3ydqpiukvn2j
[MRG] Add multicompany support for payment methods

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
<data noupdate="1">
 
4
 
 
5
    <record id="payment_method_rule" model="ir.rule">
 
6
        <field name="name">Payment method multi-company</field>
 
7
        <field name="model_id" ref="model_payment_method" />
 
8
        <field name="global" eval="True" />
 
9
        <field name="domain_force">['|','|',('company_id.child_ids','child_of',[user.company_id.id]),('company_id','child_of',[user.company_id.id]),('company_id','=',False)]</field>
 
10
    </record>
 
11
 
 
12
</data>
 
13
</openerp>