-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] ddmrp: introduce specific security groups
Try to give a bit more of flexibility on who can modify ddmrp master data (new ddmrp manager group) and stock buffers (new stock stock buffer maintainer group).
- Loading branch information
1 parent
25ec02f
commit d359d91
Showing
8 changed files
with
60 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
|
||
<record id="base.user_demo" model="res.users"> | ||
<field eval="[(4, ref('group_stock_buffer_maintainer'))]" name="groups_id" /> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" ?> | ||
<odoo noupdate="1"> | ||
|
||
<record id="module_category_ddmrp" model="ir.module.category"> | ||
<field name="name">DDMRP</field> | ||
<field name="sequence">40</field> | ||
</record> | ||
|
||
<record id="group_change_buffer_procure_qty" model="res.groups"> | ||
<field | ||
name="name" | ||
>Change quantity in manual procurements from Stock Buffers</field> | ||
<field name="implied_ids" eval="[(4, ref('base.group_user'))]" /> | ||
<field name="category_id" ref="ddmrp.module_category_ddmrp" /> | ||
</record> | ||
|
||
<record id="group_stock_buffer_maintainer" model="res.groups"> | ||
<field name="name">Stock Buffer Maintainer</field> | ||
<field name="category_id" ref="ddmrp.module_category_ddmrp" /> | ||
<field name="implied_ids" eval="[(4, ref('stock.group_stock_user'))]" /> | ||
</record> | ||
|
||
<record id="group_ddmrp_manager" model="res.groups"> | ||
<field name="name">DDMRP Manager</field> | ||
<field name="category_id" ref="ddmrp.module_category_ddmrp" /> | ||
<field | ||
name="implied_ids" | ||
eval="[(4, ref('ddmrp.group_stock_buffer_maintainer'))]" | ||
/> | ||
<field | ||
name="users" | ||
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]" | ||
/> | ||
</record> | ||
|
||
</odoo> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
access_product_adu_calculation_method,product.adu.calculation.method,model_product_adu_calculation_method,stock.group_stock_user,1,0,0,0 | ||
access_product_adu_calculation_method_system,product.adu.calculation.method system,model_product_adu_calculation_method,stock.group_stock_manager,1,1,1,1 | ||
access_product_adu_calculation_method_system,product.adu.calculation.method system,model_product_adu_calculation_method,ddmrp.group_ddmrp_manager,1,1,1,1 | ||
access_stock_buffer_profile,stock.buffer.profile,model_stock_buffer_profile,stock.group_stock_user,1,0,0,0 | ||
access_stock_buffer_profile_system,stock.buffer.profile system,model_stock_buffer_profile,stock.group_stock_manager,1,1,1,1 | ||
access_stock_buffer_profile_system,stock.buffer.profile system,model_stock_buffer_profile,ddmrp.group_ddmrp_manager,1,1,1,1 | ||
access_stock_buffer_profile_lead_time,stock.buffer.profile.lead.time stock user,model_stock_buffer_profile_lead_time,stock.group_stock_user,1,0,0,0 | ||
access_stock_buffer_profile_lead_time_manager,stock.buffer.profile.lead.time stock user,model_stock_buffer_profile_lead_time,stock.group_stock_manager,1,1,1,1 | ||
access_stock_buffer_profile_lead_time_manager,stock.buffer.profile.lead.time stock user,model_stock_buffer_profile_lead_time,ddmrp.group_ddmrp_manager,1,1,1,1 | ||
access_stock_buffer_profile_variability,stock.buffer.profile.variability stock user,model_stock_buffer_profile_variability,stock.group_stock_user,1,0,0,0 | ||
access_stock_buffer_profile_variability_manager,stock.buffer.profile.variability stock manager,model_stock_buffer_profile_variability,stock.group_stock_manager,1,1,1,1 | ||
access_stock_buffer_profile_variability_manager,stock.buffer.profile.variability stock manager,model_stock_buffer_profile_variability,ddmrp.group_ddmrp_manager,1,1,1,1 | ||
access_stock_buffer,stock.buffer.user,model_stock_buffer,stock.group_stock_user,1,0,0,0 | ||
access_stock_buffer_manager,stock.buffer.manager,model_stock_buffer,stock.group_stock_manager,1,1,1,1 | ||
access_stock_buffer_manager,stock.buffer.manager,model_stock_buffer,ddmrp.group_stock_buffer_maintainer,1,1,1,1 |
10 changes: 0 additions & 10 deletions
10
ddmrp/security/stock_buffer_manual_procurement_security.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters