Skip to Content
Menu
This question has been flagged
1 Reply
1234 Views

I am getting error while applying required field for "Crm -> pipeline -> tag_ids ".

Crm -> pipeline -> tag_ids required field

Code:


                    {'required': [('type', '=', 'opportunity')]}

Error: Element '' cannot be located in parent view

Let me know if you face any such issue and resolved it.

Avatar
Discard
Best Answer

Hello, @Ashish Shah

Hope you are doing well, 
 
- Please use this following xpath for tag_ids to make it required when type is 'opportunity'

Please find code in comment. 

I hope this will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Discard

<xpath expr="//group[@name='lead_priority']/field[@name='tag_ids']" position="attributes">
<attribute name="attrs">
{'required': [('type', '=', 'opportunity')]}
</attribute>
</xpath>

Related Posts Replies Views Activity
3
Feb 24
559
4
Jan 17
3644
2
Aug 23
1056
1
Jul 23
713
1
Jun 23
1774