forked from osbzr/gooderp_addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] 添加 access_control_goods 模块,创建创建商品组,组成员可以对商品进行增删改查,普通用户只能查看
- Loading branch information
Showing
4 changed files
with
34 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# -*- coding: utf-8 -*- |
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,19 @@ | ||
# -*- coding: utf-8 -*- | ||
{ | ||
'name': "GoodERP Access Control Goods 模块", | ||
'author': "开阖软件", | ||
'website': "http://www.osbzr.com", | ||
'category': 'gooderp', | ||
'summary': 'GoodERP 商品 读写建删权限控制', | ||
"description": | ||
''' | ||
该模块添加了 创建商品组,该组成员可以对商品进行增删改查,普通用户只能查看。 | ||
''', | ||
'version': '11.11', | ||
'application': True, | ||
'depends': ['core'], | ||
'data': [ | ||
'security/groups.xml', | ||
'security/ir.model.access.csv', | ||
], | ||
} |
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,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<openerp> | ||
<data noupdate="1"> | ||
<!--添加创建创建商品组--> | ||
<record id="group_operate_goods_main_data" model="res.groups"> | ||
<field name='name'>创建商品</field> | ||
<field name='category_id' ref="core.Gooderp"/> | ||
<field name="users" eval="[(4, ref('base.user_root'))]"/> | ||
</record> | ||
</data> | ||
</openerp> |
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,3 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
core.access_goods,access_goods_user,core.model_goods,base.group_user,1,0,0,0 | ||
access_goods_operator,access_goods_operator,core.model_goods,access_control_goods.group_operate_goods_main_data,1,1,1,1 |