Skip to Content
Menu
This question has been flagged
3 Replies
2574 Views

all the Hr_contract module view use string=  instead name !

So each time i try to set it invisible in an herited module and view i receive error message

"View inheritance may not use attribute 'string' as a selector."

I try many things does any know that ?

regards



Avatar
Discard
Author Best Answer

Thank you but !
  Have you counted my question? both of you?
  I just want to hide this page there in this specific module, not in general asking , because in general I know how to do. thanks again

Avatar
Discard

Hi Monsieur , Can you explain what exactly you are looking for ?

Le 08/06/2017 à 16:16, Niyas Raphy a écrit :

Hi Monsieur , Can you explain what exactly you are looking for ?

yes hide the page in hr.contract  with string Work Permit

look at the picture
may use page[1] in xpath ?

--
Niyas Raphy


Sent by Odoo S.A. using Odoo.


-- 
eric@ebii.fr
http://www.ebii.fr
EBII Eric Bouhana Ingénierie Informatique S.a.s.u
278 chemin de fontanières 69350 la Mulatiere
tél: 04 92 94 77 90
fax: 04 92 94 77 65
Mobile: 06 60 64 12 03 

Hi Monsieur, Yes we can hide using the page in the xpath, i just updated my answer,

Best Answer

HI ,

You can hide the page 'work permit' in the hr contact form like this .

Thank You

<record model="ir.ui.view" id="custom_hr">
<field name="name">custom.hr</field>
<field name="model">hr.contract</field>
<field name="inherit_id" ref="hr_contract.hr_contract_view_form"/>
<field name="arch" type="xml">
<xpath expr="//page[2]" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
</field>
</record>
Avatar
Discard
Best Answer

Since 9.0 you can not use string attribute in xpath expressions anymore.

Avatar
Discard
Related Posts Replies Views Activity
1
Mar 23
1332
3
Aug 19
11228
7
Jul 19
3649
0
Jun 19
2264
0
Mar 19
4330