diff options
| author | nch@tinyerp.com <> | 2010-05-12 12:17:56 +0530 |
|---|---|---|
| committer | nch@tinyerp.com <> | 2010-05-12 12:17:56 +0530 |
| commit | f0aa8a0a0c1367161eba7426d9a37d61ba8bd899 (patch) | |
| tree | 468357a929cf8584e174458c1ead6f19bee58014 /addons/mrp_procurement/security | |
| parent | ce10539ffb5bd18fa2578689f152c88be6966d89 (diff) | |
| parent | bd933e119001332a6eea3255d490a62ccf7fb5fb (diff) | |
[MERGE]
bzr revid: nch@tinyerp.com-20100512064756-778rth7jwjwhcjsz
Diffstat (limited to 'addons/mrp_procurement/security')
| -rw-r--r-- | addons/mrp_procurement/security/ir.model.access.csv | 9 | ||||
| -rw-r--r-- | addons/mrp_procurement/security/mrp_procurement_security.xml | 20 |
2 files changed, 29 insertions, 0 deletions
diff --git a/addons/mrp_procurement/security/ir.model.access.csv b/addons/mrp_procurement/security/ir.model.access.csv new file mode 100644 index 00000000000..ce022a730b0 --- /dev/null +++ b/addons/mrp_procurement/security/ir.model.access.csv @@ -0,0 +1,9 @@ +"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" +"access_mrp_property_group","mrp.property.group","model_mrp_property_group",,1,0,0,0 +"access_mrp_property","mrp.property","model_mrp_property",,1,0,0,0 +"access_mrp_procurement","mrp.procurement","model_mrp_procurement",,1,0,0,0 +"access_stock_warehouse_orderpoint","stock.warehouse.orderpoint","model_stock_warehouse_orderpoint",,1,0,0,0 +"access_mrp_procurement_compute_all","mrp.procurement.compute.all","model_mrp_procurement_compute_all",,1,0,0,0 +"access_mrp_procurement_orderpoint_compute","mrp.procurement.orderpoint.compute","model_mrp_procurement_orderpoint_compute",,1,0,0,0 +"access_mrp_make_procurement","make.procurement","model_make_procurement",,1,0,0,0 +"access_mrp_make_procurement","mrp.procurement.compute","model_mrp_procurement_compute",,1,0,0,0 diff --git a/addons/mrp_procurement/security/mrp_procurement_security.xml b/addons/mrp_procurement/security/mrp_procurement_security.xml new file mode 100644 index 00000000000..a0f2ef431bf --- /dev/null +++ b/addons/mrp_procurement/security/mrp_procurement_security.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data noupdate="0"> + + <record model="ir.rule" id="mrp_procurement_rule"> + <field name="name">mrp_procurement multi-company</field> + <field name="model_id" search="[('model','=','mrp.procurement')]" model="ir.model"/> + <field name="global" eval="True"/> + <field name="domain_force">['|',('company_id','child_of',[user.company_id.id]),('company_id','=',False)]</field> + </record> + + <record model="ir.rule" id="stock_warehouse_orderpoint_rule"> + <field name="name">stock_warehouse.orderpoint multi-company</field> + <field name="model_id" search="[('model','=','stock.warehouse.orderpoint')]" model="ir.model"/> + <field name="global" eval="True"/> + <field name="domain_force">['|',('company_id','child_of',[user.company_id.id]),('company_id','=',False)]</field> + </record> + + </data> +</openerp>
\ No newline at end of file |
