mreficent
6 years ago
15 changed files with 146 additions and 134 deletions
-
20partner_sector/README.rst
-
6partner_sector/__manifest__.py
-
2partner_sector/models/__init__.py
-
8partner_sector/models/res_config_settings.py
-
21partner_sector/models/res_partner.py
-
14partner_sector/models/res_partner_industry.py
-
7partner_sector/security/ir.model.access.csv
-
7partner_sector/security/partner_industry_security.xml
-
7partner_sector/security/partner_sector_security.xml
-
2partner_sector/tests/__init__.py
-
22partner_sector/tests/test_res_partner_sector.py
-
15partner_sector/views/res_config_settings.xml
-
29partner_sector/views/res_partner_industry_view.xml
-
30partner_sector/views/res_partner_sector_view.xml
-
90partner_sector/views/res_partner_view.xml
@ -1,5 +1,5 @@ |
|||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
|
|
||||
from . import res_partner |
from . import res_partner |
||||
from . import res_partner_sector |
|
||||
|
from . import res_partner_industry |
||||
from . import res_config_settings |
from . import res_config_settings |
@ -1,5 +1,4 @@ |
|||||
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" |
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" |
||||
"access_res_partner_sector_public","res_partner_sector group_public","model_res_partner_sector","base.group_public",1,0,0,0 |
|
||||
"access_res_partner_sector_portal","res_partner_sector group_portal","model_res_partner_sector","base.group_portal",1,0,0,0 |
|
||||
"access_res_partner_sector_group_partner_manager","res_partner_sector group_partner_manager","model_res_partner_sector","base.group_partner_manager",1,1,1,1 |
|
||||
"access_res_partner_sector_group_user","res_partner_sector group_user","model_res_partner_sector","base.group_user",1,0,0,0 |
|
||||
|
"access_res_partner_industry_public","res_partner_industry group_public","model_res_partner_industry","base.group_public",1,0,0,0 |
||||
|
"access_res_partner_industry_portal","res_partner_industry group_portal","model_res_partner_industry","base.group_portal",1,0,0,0 |
||||
|
"access_res_partner_industry_group_partner_manager","res_partner_industry group_partner_manager","model_res_partner_industry","base.group_partner_manager",1,1,1,1 |
@ -0,0 +1,7 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<record id="group_use_partner_industry_for_person" model="res.groups"> |
||||
|
<field name="name">Use industry for individuals</field> |
||||
|
<field name="category_id" ref="base.module_category_hidden"/> |
||||
|
</record> |
||||
|
</odoo> |
@ -1,7 +0,0 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
<odoo> |
|
||||
<record id="group_use_partner_sector_for_person" model="res.groups"> |
|
||||
<field name="name">Use sector for individuals</field> |
|
||||
<field name="category_id" ref="base.module_category_hidden"/> |
|
||||
</record> |
|
||||
</odoo> |
|
@ -1,3 +1,3 @@ |
|||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
|
|
||||
from . import test_res_partner_sector |
|
||||
|
from . import test_res_partner_industry |
@ -0,0 +1,29 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<!-- © 2015 Antiun Ingenieria S.L. - Javier Iniesta |
||||
|
Copyright 2018 Eficent Business and IT Consulting Services, S.L. |
||||
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> |
||||
|
<odoo> |
||||
|
|
||||
|
<record id="res_partner_industry_view_form" model="ir.ui.view"> |
||||
|
<field name="name">Industry</field> |
||||
|
<field name="model">res.partner.industry</field> |
||||
|
<field name="inherit_id" ref="base.res_partner_industry_view_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<field name="full_name" position="after"> |
||||
|
<field name="parent_id"/> |
||||
|
</field> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="res_partner_industry_view_tree" model="ir.ui.view"> |
||||
|
<field name="name">Industry</field> |
||||
|
<field name="model">res.partner.industry</field> |
||||
|
<field name="inherit_id" ref="base.res_partner_industry_view_tree"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<field name="name" position="after"> |
||||
|
<field name="parent_id"/> |
||||
|
</field> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
</odoo> |
@ -1,30 +0,0 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
<!-- Copyright 2015 Antiun Ingenieria S.L. - Javier Iniesta |
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> |
|
||||
<odoo> |
|
||||
|
|
||||
<record id="res_partner_sector_action" model="ir.actions.act_window"> |
|
||||
<field name="name">Sectors</field> |
|
||||
<field name="res_model">res.partner.sector</field> |
|
||||
<field name="view_type">form</field> |
|
||||
<field name="view_mode">tree</field> |
|
||||
</record> |
|
||||
|
|
||||
<record id="res_partner_sector_tree_view" model="ir.ui.view"> |
|
||||
<field name="name">Partner Sector tree</field> |
|
||||
<field name="model">res.partner.sector</field> |
|
||||
<field name="arch" type="xml"> |
|
||||
<tree string="Sectors" editable="top"> |
|
||||
<field name="name"/> |
|
||||
<field name="parent_id"/> |
|
||||
</tree> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
|
||||
<menuitem action="res_partner_sector_action" |
|
||||
id="menu_res_partner_sector" |
|
||||
name="Sectors" |
|
||||
parent="contacts.res_partner_menu_config" |
|
||||
sequence="3"/> |
|
||||
|
|
||||
</odoo> |
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue