forked from OCA/partner-contact
-
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.
[IMP] partner_industry_secondary: black, isort, prettier
- Loading branch information
1 parent
9349e28
commit deb4625
Showing
10 changed files
with
176 additions
and
125 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
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
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
4 changes: 2 additions & 2 deletions
4
partner_industry_secondary/security/partner_industry_security.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?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"/> | ||
<field name="category_id" ref="base.module_category_hidden" /> | ||
</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
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,35 +1,45 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- 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_config_settings_view_form" model="ir.ui.view"> | ||
<field name="name">res.config.settings.view.form</field> | ||
<field name="model">res.config.settings</field> | ||
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//div[@name='multi_company']" position="after"> | ||
<h2>Partner Industries</h2> | ||
<div class="row mt16 o_settings_container" name="partner_industries"> | ||
<div class="col-xs-12 col-md-6 o_setting_box"> | ||
<div class="o_setting_left_pane"> | ||
<field name="group_use_partner_industry_for_person"/> | ||
</div> | ||
<div class="o_setting_right_pane"> | ||
<label string="Industry for individual" for="group_use_partner_industry_for_person"/> | ||
<div class="text-muted"> | ||
<record id="res_config_settings_view_form" model="ir.ui.view"> | ||
<field name="name">res.config.settings.view.form</field> | ||
<field name="model">res.config.settings</field> | ||
<field name="inherit_id" ref="base_setup.res_config_settings_view_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//div[@name='multi_company']" position="after"> | ||
<h2>Partner Industries</h2> | ||
<div class="row mt16 o_settings_container" name="partner_industries"> | ||
<div class="col-xs-12 col-md-6 o_setting_box"> | ||
<div class="o_setting_left_pane"> | ||
<field name="group_use_partner_industry_for_person" /> | ||
</div> | ||
<div class="o_setting_right_pane"> | ||
<label | ||
string="Industry for individual" | ||
for="group_use_partner_industry_for_person" | ||
/> | ||
<div class="text-muted"> | ||
Enable industries for individuals | ||
</div> | ||
<div class="content-group"> | ||
<div class="mt16" attrs="{'invisible': [('group_use_partner_industry_for_person', '=', False)]}"> | ||
<button name="%(base.res_partner_industry_action)d" icon="fa-arrow-right" type="action" string="Industries" class="btn-link"/> | ||
</div> | ||
<div class="content-group"> | ||
<div | ||
class="mt16" | ||
attrs="{'invisible': [('group_use_partner_industry_for_person', '=', False)]}" | ||
> | ||
<button | ||
name="%(base.res_partner_industry_action)d" | ||
icon="fa-arrow-right" | ||
type="action" | ||
string="Industries" | ||
class="btn-link" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</div> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |
13 changes: 5 additions & 8 deletions
13
partner_industry_secondary/views/res_partner_industry_view.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 |
---|---|---|
@@ -1,29 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 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="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 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="inherit_id" ref="base.res_partner_industry_view_tree" /> | ||
<field name="arch" type="xml"> | ||
<field name="name" position="after"> | ||
<field name="parent_id"/> | ||
<field name="parent_id" /> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
</odoo> |
Oops, something went wrong.