-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from tegin/16.0-mig-cb_maintenance_security
[16.0][MIG] cb_maintenance_security: Migration to 16.0
- Loading branch information
Showing
8 changed files
with
89 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 @@ | ||
Demo Data |
Empty file.
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,18 @@ | ||
# Copyright 2019 Creu Blanca | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Cb Maintenance Security", | ||
"summary": """ | ||
Security""", | ||
"version": "16.0.1.0.0", | ||
"license": "AGPL-3", | ||
"author": "CreuBlanca", | ||
"website": "https://github.com/tegin/cb-maintenance", | ||
"depends": ["cb_maintenance"], | ||
"data": [ | ||
"data/maintenance_data.xml", | ||
"security/maintenance_security.xml", | ||
"views/menu_items.xml", | ||
], | ||
} |
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" ?> | ||
<!-- License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<odoo noupdate="1"> | ||
<record id="module_maintenance" model="ir.module.category"> | ||
<field name="name">Maintenance</field> | ||
<field name="sequence">103</field> | ||
</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,17 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<record id="maintenance.group_equipment_manager" model="res.groups"> | ||
<field name="name">Maintenance Manager</field> | ||
<field name="category_id" ref="module_maintenance" /> | ||
</record> | ||
<record id="group_maintenance_full_access" model="res.groups"> | ||
<field name="name">Full Access</field> | ||
<field name="category_id" ref="module_maintenance" /> | ||
<field | ||
name="implied_ids" | ||
eval="[(4, ref('maintenance.group_equipment_manager'))]" | ||
/> | ||
<field name="users" eval="[(4, ref('base.user_root'))]" /> | ||
</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,38 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<!-- CONFIGURATION MENU --> | ||
<record id="maintenance.menu_maintenance_configuration" model="ir.ui.menu"> | ||
<field | ||
eval="[(6, 0, [ref('maintenance.group_equipment_manager')])]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
<record id="maintenance.menu_maintenance_stage_configuration" model="ir.ui.menu"> | ||
<field | ||
eval="[(6, 0, [ref('cb_maintenance_security.group_maintenance_full_access')])]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
<record id="maintenance.menu_maintenance_teams" model="ir.ui.menu"> | ||
<field | ||
eval="[(6, 0, [ref('cb_maintenance_security.group_maintenance_full_access')])]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
<record id="maintenance.menu_maintenance_cat" model="ir.ui.menu"> | ||
<field | ||
eval="[(6, 0, [ref('cb_maintenance_security.group_maintenance_full_access')])]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
<record | ||
id="maintenance_plan.menu_maintenance_kind_configuration" | ||
model="ir.ui.menu" | ||
> | ||
<field | ||
eval="[(6, 0, [ref('cb_maintenance_security.group_maintenance_full_access')])]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
</odoo> |
1 change: 1 addition & 0 deletions
1
setup/cb_maintenance_security/odoo/addons/cb_maintenance_security
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 @@ | ||
../../../../cb_maintenance_security |
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,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |