コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3159 ビュー

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.


アバター
破棄
関連投稿 返信 ビュー 活動
1
11月 24
1675
5
7月 24
92984
1
12月 23
3072
1
5月 22
3697
0
1月 20
2915