跳至内容
菜单
此问题已终结
1 回复
2176 查看

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.

形象
丢弃
最佳答案

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

形象
丢弃

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

相关帖文 回复 查看 活动
3
2月 24
1699
4
1月 17
4450
2
8月 23
1903
1
7月 23
2029
1
6月 23
1774