123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?xml version="1.0"?>
- <openerp>
- <data noupdate="1">
- <record model="res.groups" id="group_multi_store">
- <field name="name">Multi Stores</field>
- <field name="category_id" ref="base.module_category_usability"/>
- <field name="users" eval="[(4, ref('base.user_root'))]"/>
- </record>
- <record id="res_store_rule" model="ir.rule">
- <field name="name">multi-store store rule</field>
- <field name="model_id" ref="model_res_store"/>
- <field name="domain_force">[('id','child_of',[user.store_id.id])]</field>
- </record>
- <record id="journal_store_rule" model="ir.rule">
- <field name="name">Journal multi-store</field>
- <field name="model_id" ref="account.model_account_journal"/>
- <field name="global" eval="True"/>
- <!-- <field name="perm_read" eval="False"/> -->
- <field name="domain_force">['|',('store_ids','=',False),('store_ids','child_of',[user.store_id.id])]</field>
- </record>
-
- <record id="account_move_store_rule" model="ir.rule">
- <field name="name">Account Entry</field>
- <field name="model_id" ref="account.model_account_move"/>
- <field name="global" eval="True"/>
- <field name="domain_force">['|',('journal_id.store_ids','=',False),('journal_id.store_ids','child_of',[user.store_id.id])]</field>
- </record>
- <record id="invoice_store_rule" model="ir.rule">
- <field name="name">Invoice multi-store</field>
- <field name="model_id" ref="account.model_account_invoice"/>
- <field name="global" eval="True"/>
- <field name="domain_force">['|',('journal_id.store_ids','=',False),('journal_id.store_ids','child_of',[user.store_id.id])]</field>
- </record>
- <record id="voucher_store_rule" model="ir.rule">
- <field name="name">Voucher multi-store</field>
- <field name="model_id" ref="account_voucher.model_account_voucher"/>
- <field name="global" eval="True"/>
- <field name="domain_force">['|',('journal_id.store_ids','=',False),('journal_id.store_ids','child_of',[user.store_id.id])]</field>
- </record>
-
- <record id="account_bank_statement_store_rule" model="ir.rule">
- <field name="name">Account Bank Statement multi-store</field>
- <field name="model_id" ref="account.model_account_bank_statement"/>
- <field name="global" eval="True"/>
- <field name="domain_force">['|',('journal_id.store_ids','=',False),('journal_id.store_ids','child_of',[user.store_id.id])]</field>
- </record>
- </data>
- </openerp>
|