-
-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
54 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
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 @@ | ||
- Quentin Groulard \<<quentin.groulard@acsone.eu>\> |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
This module adds a 'Parent Team' field on the Sales Team form. This | ||
field is also displayed in the Sales Teams list. Plus, a constraint | ||
check is performed in order to avoid loops in the hierarchy. |
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
To use this module, you need to: | ||
|
||
1. Go to *CRM \> Configuration \> Sales Teams*. | ||
2. Create/edit a sales team. | ||
3. The parent team will be checked for loop in the hierarchy. |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2018 ACSONE SA/NV | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
|
||
<odoo> | ||
|
||
<record model="ir.ui.view" id="crm_team_tree_view"> | ||
<field name="name">crm.team.tree (in crm_team_parent)</field> | ||
<field name="model">crm.team</field> | ||
<field name="inherit_id" ref="sales_team.crm_team_view_tree"/> | ||
<field name="inherit_id" ref="sales_team.crm_team_view_tree" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='user_id']" position="after"> | ||
<field name="parent_id"/> | ||
<field name="parent_id" /> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
<record model="ir.ui.view" id="crm_team_form_view"> | ||
<field name="name">crm.team.form (in crm_team_parent)</field> | ||
<field name="model">crm.team</field> | ||
<field name="inherit_id" ref="sales_team.crm_team_view_form"/> | ||
<field name="inherit_id" ref="sales_team.crm_team_view_form" /> | ||
<field name="arch" type="xml"> | ||
<field name="user_id" position="after"> | ||
<field name="parent_id" domain="[('id', '!=', id)]"/> | ||
<field name="id" invisible="1"/> | ||
<field name="parent_id" domain="[('id', '!=', id)]" /> | ||
<field name="id" invisible="1" /> | ||
</field> | ||
<xpath expr="//notebook/page[@name='dashboard']" position="after"> | ||
<xpath expr="//notebook" position="inside"> | ||
<page string="Children Teams" name="children"> | ||
<field name="child_ids"> | ||
<tree delete="false" create="false"> | ||
<field name="name"/> | ||
<field name="user_id"/> | ||
<field name="name" /> | ||
<field name="user_id" /> | ||
</tree> | ||
</field> | ||
</page> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</odoo> |