Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3117 Представления

I have 3 modules: (A, B, C)

I have inherited A in B then B in C. 

In B: an xpath has been changed eg.


<xpath expr = "// p [@ id = 'fiscal_position_remark']" position = "after"> 
<p t-if = "doc.note2">
<span t-field = "doc.note2" />
</ p>
</xpath>

Then I'd like to modify the above lines in C and delete it.


<xpath expr = "// p [@ id = 'fiscal_position_remark']" position = "replace"> <p> </p>      </xpath>

Tried with the above lines in C and it does not work. 

I'd be happy to get any feedback from the community    


Аватар
Отменить
Лучший ответ

You need to inherit view of B module in C module and then you need to give xpath for ​​

   <p t-if = "doc.note2"> 

 and then replace it in xpath.


Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
нояб. 24
1622
5
июл. 24
92871
1
дек. 23
3036
1
мая 22
3625
0
янв. 20
2874