-
-
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.
[MIG] crm_security_group: Migration to 16.0
TT45865
- Loading branch information
1 parent
c239e65
commit cdce3c5
Showing
8 changed files
with
131 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
- Remove sale_crm dependency (now is not possible), maybe split these part in other addon | ||
- Remove sale_crm dependency (now is not possible), maybe split this part in other addon |
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,19 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record id="crm_case_form_view_oppor" model="ir.ui.view"> | ||
<field name="name">crm.lead.oppor.inherited.crm</field> | ||
<field name="model">crm.lead</field> | ||
<field name="inherit_id" ref="sale_crm.crm_case_form_view_oppor" /> | ||
<field name="arch" type="xml"> | ||
<button name="action_sale_quotations_new" position="attributes"> | ||
<attribute name="groups">sales_team.group_sale_salesman</attribute> | ||
</button> | ||
<button name="action_view_sale_quotation" position="attributes"> | ||
<attribute name="groups">sales_team.group_sale_salesman</attribute> | ||
</button> | ||
<button name="action_view_sale_order" position="attributes"> | ||
<attribute name="groups">sales_team.group_sale_salesman</attribute> | ||
</button> | ||
</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,90 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record id="sales_team_crm_team_view_kanban_dashboard" model="ir.ui.view"> | ||
<field name="name">sales_team.team.view.kanban.dashboard.inherit.sale</field> | ||
<field name="model">crm.team</field> | ||
<field name="inherit_id" ref="sales_team.crm_team_view_kanban_dashboard" /> | ||
<field name="arch" type="xml"> | ||
<button name="action_primary_channel_button" position="attributes"> | ||
<attribute | ||
name="groups" | ||
>crm_security_group.group_crm_own_leads</attribute> | ||
</button> | ||
</field> | ||
</record> | ||
<record id="sale_crm_team_view_kanban_dashboard" model="ir.ui.view"> | ||
<field name="name">sale_crm.team.view.kanban.dashboard.inherit.sale</field> | ||
<field name="model">crm.team</field> | ||
<field name="inherit_id" ref="sale.crm_team_view_kanban_dashboard" /> | ||
<field name="arch" type="xml"> | ||
<field name="use_quotations" position="attributes"> | ||
<attribute name="groups">sales_team.group_sale_salesman</attribute> | ||
</field> | ||
<field name="invoiced_target" position="attributes"> | ||
<attribute name="groups">sales_team.group_sale_salesman</attribute> | ||
</field> | ||
<xpath | ||
expr="//div[@t-if='record.quotations_count.raw_value']" | ||
position="attributes" | ||
> | ||
<attribute name="groups">sales_team.group_sale_salesman</attribute> | ||
</xpath> | ||
<xpath expr="//div[@name='orders_to_invoice']" position="attributes"> | ||
<attribute name="groups">sales_team.group_sale_salesman</attribute> | ||
</xpath> | ||
<xpath | ||
expr="//div[@t-if='record.use_quotations.raw_value']" | ||
position="attributes" | ||
> | ||
<attribute name="groups">sales_team.group_sale_salesman</attribute> | ||
</xpath> | ||
<xpath expr="//div[@name='sales_report']" position="attributes"> | ||
<attribute name="groups">sales_team.group_sale_salesman</attribute> | ||
</xpath> | ||
</field> | ||
</record> | ||
<record id="crm_team_view_kanban_dashboard" model="ir.ui.view"> | ||
<field name="name">crm.team.view.kanban.dashboard.inherit.sale</field> | ||
<field name="model">crm.team</field> | ||
<field name="inherit_id" ref="crm.crm_team_view_kanban_dashboard" /> | ||
<field name="arch" type="xml"> | ||
<xpath | ||
expr="//div[@t-if='record.lead_unassigned_count.raw_value']" | ||
position="attributes" | ||
> | ||
<attribute | ||
name="groups" | ||
>crm_security_group.group_crm_own_leads</attribute> | ||
</xpath> | ||
<xpath | ||
expr="//div[@t-if='record.opportunities_count.raw_value']" | ||
position="attributes" | ||
> | ||
<attribute | ||
name="groups" | ||
>crm_security_group.group_crm_own_leads</attribute> | ||
</xpath> | ||
<xpath | ||
expr="//div[@t-if='record.opportunities_overdue_count.raw_value']" | ||
position="attributes" | ||
> | ||
<attribute | ||
name="groups" | ||
>crm_security_group.group_crm_own_leads</attribute> | ||
</xpath> | ||
<xpath | ||
expr="//div[@t-if='record.use_opportunities.raw_value']" | ||
position="attributes" | ||
> | ||
<attribute | ||
name="groups" | ||
>crm_security_group.group_crm_own_leads</attribute> | ||
</xpath> | ||
<xpath expr="//div[@name='activity_report']" position="attributes"> | ||
<attribute | ||
name="groups" | ||
>crm_security_group.group_crm_own_leads</attribute> | ||
</xpath> | ||
</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