Skip to content
Snippets Groups Projects
Commit 85b2e607 authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[FIX] crm: prevent use a sales tag from another team.

On the `categ_ids` fields definition on `crm.lead`,
a domain has been added in order to prevent
the use of a sales tag belonging to another
sales team.

As the domain was overidden in the form views,
with a different domain, it was allowed
to use a sales tag from another sales team.

Besides, the domain applied in the form views,
`[('object_id.model','=','crm.lead')]`
is included in the domain applied in the fiel
definition.

Closes #2898
parent 528c15cc
Branches
Tags
No related merge requests found
......@@ -164,7 +164,6 @@
<field name="priority"/>
<field name="categ_ids"
widget="many2many_tags"
domain="[('object_id.model','=','crm.lead')]"
context="{'object_name': 'crm.lead'}"
/>
</group>
......@@ -436,9 +435,7 @@
<group>
<field name="categ_ids"
string="Categories" widget="many2many_tags"
context = "{'object_name': 'crm.lead'}"
domain="[('object_id.model', '=', 'crm.lead')]"/>
context="{'object_name': 'crm.lead'}"/>
</group>
</group>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment