xml - How to deal with the symbol & in labels or strings in OpenERP? -



xml - How to deal with the symbol & in labels or strings in OpenERP? -

i trying remove tab standard form of partners. tab want remove sales & purchases. removed each 1 of siblings without problem, cannot same one. , because symbol &. error of xml invalid architecture.

i tried these 2 lines:

<xpath expr="/form//notebook//page[@string='sales &amp; purchases']" position="replace"/>

and:

<xpath expr="/form//notebook//page[@string='sales & purchases']" position="replace"/>

always same error. knows how this?

try this, work

generally, can utilize this,

<page string="string name" position="replace"> <!-- here can define replace page --> </page>

for sales &amp; purchases, per knowledge, should not replace sales & purchases tab because in tab, many field configurable. go replace problems occurs like:

active, opt-out , receive messages email, these utilize email template. these not found if go replace page. some property filed not value sale pricelist, purchase pricelist, client location , supplier location.

as per advice, please don't replace tab.

if still want follow step.

hide sales & purchase tab

<page string="sales &amp; purchases" position="attributes"> <attribute name="invisible">1</attribute> </page>

show new page.

<page string="internal notes" position="after"> <page string="page name"> <!-- set field --> </page> <page>

hope help you.

xml forms openerp openerp-7

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -