Skip to Content
Menu
This question has been flagged
2 Replies
3676 Views

I want to change product_template_only_form_view the string of the group Internal Notes.


How am I supposed to change it if the group has no name attribute?


My code:


< xpath expr="//group[@string='Internal Notes']" position="attributes" >

< attribute name="string" >Short description< /attribute>

< /xpath>


Thank you



Avatar
Discard
Best Answer

Try to give a longer path, the most detailled possible

Assuming you want to remove the page Internal Notes (tab) from the partner form, and not a group, it would result in this without passing the name :

< xpath expr="//notebook/page[5] position="attributes">    
    < attribute name="string">Short description< /attribute>
< /xpath>

The path can be longer, and as you can see, you can tell the element's position with the []

To know which path to take, use the debug menu "Fields View Get"

Avatar
Discard
Author

ty

Best Answer

use name of the group instead of string.

eg: expr="//group[@name='lead_creation_basis']" position="attributes">

Avatar
Discard

He said he had no name attribute...

Related Posts Replies Views Activity
1
Nov 24
1483
1
Nov 24
1188
2
Sep 24
1047
1
Aug 24
2451
3
Aug 24
2686