Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1136 Lượt xem

Here is the code I have tried,

expr="//field[@name='email_from']" position="attributes">
name="invisible">1


Ảnh đại diện
Huỷ bỏ
Tác giả

I tried both of this.. but getting this error, odoo.tools.convert.ParseError: "Element '<xpath expr="//group[@name='opportunity_partner']//field[@name='email_from']">' cannot be located in parent view

Tác giả

I tried both of this.. but getting this error, odoo.tools.convert.ParseError: "Element '' cannot be located in parent view

Câu trả lời hay nhất

Hello Jaseel PM,

You can invisible email field in CRM Lead Form View..

Find Example in comment.

Hope it will be helpful to you.

Thanks & Regards,
Email:  odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

Ảnh đại diện
Huỷ bỏ

Please find code here :-

For Example -

- In the Inherited Form View of CRM Paste the Below Xpath :-
<xpath expr="//group[@name='opportunity_partner']//field[@name='email_from']" position='attributes'>
<attribute name="invisible">1</attribute>
</xpath>

Câu trả lời hay nhất

Hi,

You can improve the xpath to point to specific field, please try with the xpath added in the comment section.

expr="//form[1]/sheet[1]/group[1]/group[@name='opportunity_partner']/div[1]/field[@name='email_from']"

 

Thanks

Ảnh đại diện
Huỷ bỏ

<xpath expr="//form[1]/sheet[1]/group[1]/group[@name='opportunity_partner']/div[1]/field[@name='email_from']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>