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

Hi,

i want to inherit the xml file and modify it using xpath.  I want to replace a section under this condition statement below:

<table class = "table table-sm mt48" t-if = "o.move_line_ids and o.state == 'done'">

i have try this statement but it doesn't work.

  <xpath expr = "// div [hasclass ('page')] // table [@ class = 'table table-sm mt48'] //table[@t-if="o.move_line_ids and o.state=='done'"]// tbody" position = "replace">

My error msg is stated below:

lxml.etree.XMLSyntaxError: attributes construct error, line 37, column 58

Is there a link regarding on how to use xpath in qweb that discuss on how to search different  path and t-if conditional  and t-set or for I loop statement?

Thanks your help.

regards,

Gain Charlie



아바타
취소
관련 게시물 답글 화면 활동
0
1월 24
1592
0
1월 24
1280
0
2월 22
2485
0
4월 20
3651
1
8월 19
6321