Skip to content

Commit 2295890

Browse files
author
mathieu
committed
[ADD] security on product_product and product_template
1 parent 4e53a03 commit 2295890

File tree

6 files changed

+35
-0
lines changed

6 files changed

+35
-0
lines changed

product_editor/__init__.py

Whitespace-only changes.

product_editor/__manifest__.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2020 Pharmasimple (https://www.pharmasimple.be)
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
{
4+
"name": "Group Management",
5+
"category": "Custom",
6+
"summary": "Group Management",
7+
"version": "14.0.1.0.0",
8+
"author": "Pharmasimple",
9+
"license": "AGPL-3",
10+
"website": "https://github.com/akretion/phs-addons",
11+
"depends": ["product"],
12+
"data": [
13+
'security/product_security.xml',
14+
'security/ir.model.access.csv',
15+
],
16+
"installable": True,
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
2+
access_product_product_manager,product_product_manager,product.model_product_product,group_product_product_manager,1,1,1,0
3+
access_product_template_manager,product_template_manager,product.model_product_template,group_product_product_manager,1,1,1,0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<odoo>
4+
<record id="group_product_product_manager" model="res.groups">
5+
<field name="name">Product Manager</field>
6+
<field name="category_id" ref="base.module_category_product"/>
7+
</record>
8+
</odoo>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../product_editor

setup/product_editor/setup.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)

0 commit comments

Comments
 (0)