Sagar Mohan
Sagar Mohan

Reputation: 145

OpenERP - Rename Page String

I'd like to rename the string of a page on OpenERP. To be specific, the 'Description' page on the Expenses module.

I'm not able to inherit this through the xpath code as the page itself has no name and you cannot change the label/string through the attrs fields. Below is the code I attempted to do this however it failed:

<xpath expr="/form/sheet/notebook/page[@string='Description']" position = "attributes">
        <attriute name = "string" = "Expenses"/>
</xpath>

There has to be a way to do this but I can't seem to figure out how.

Upvotes: 0

Views: 1486

Answers (1)

Bhavesh Odedra
Bhavesh Odedra

Reputation: 11141

try this,

<xpath expr="//form/sheet/notebook/page[@string='Description']" position = "attributes">
    <attriute name = "string">Expenses</attriute>
</xpath>

For default attribute like

<xpath expr="path_of_field/page/group/whatever" position = "attributes">
    <attriute name = "attribute_name"> here is value </attriute>
</xpath>

Hope this will help you.

Upvotes: 1

Related Questions