[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
This commit is contained in:
parent
528c15cc7b
commit
85b2e607bf
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue