콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3100 화면

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
1596
5
7월 24
92857
1
12월 23
3023
1
5월 22
3610
0
1월 20
2859