Add module product_usability

This commit is contained in:
Alexis de Lattre
2016-02-26 10:21:46 +01:00
parent 941366ee47
commit 0331fb1290
6 changed files with 267 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_product_price_history_employee,prices.history employee,model_product_price_history,base.group_user,1,0,0,0
access_product_price_history_salemanager,prices.history sale manager,model_product_price_history,base.group_sale_manager,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_product_price_history_employee prices.history employee model_product_price_history base.group_user 1 0 0 0
3 access_product_price_history_salemanager prices.history sale manager model_product_price_history base.group_sale_manager 1 1 1 1

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
The licence is in the file __openerp__.py
-->
<openerp>
<data noupdate="1">
<record id="product_price_history_rule" model="ir.rule">
<field name="name">Product price history multi-company</field>
<field name="model_id" ref="model_product_price_history"/>
<field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
</record>
</data>
</openerp>