Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5147 มุมมอง

Hi everyone,

            I have a form view which has a separator and i need to get rid of it.

< group col="4" >
    < field name="date_start"  / >
    < field name="credit_note" / >
< /group >
< separator string="Payslips" / >
< field name="slip_ids" / >

I need to hide the separator "Payslips", can anyone help me ?

I have tried with these,
< xpath expr="/from/sheet/separator" position="replace" >
< /xpath >

< xpath expr="/from/sheet/separator[0]" position="replace" >
< /xpath >

< xpath expr="//separator" position="replace" >
< /xpath >


But it throws the error cannot be located in parent view

Thanks in advance


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

i trying to write example but example is disappearing don't know the reason but i'll write for you 

if name is not given  in separator tag then give index
use position="attributes" 
open the attribute tag 

in this tag write attribute name="invisible" 1

in source code you will find related example for writing xpath

อวตาร
ละทิ้ง
ผู้เขียน

Hi,

I have tried with indexing but didnt work either, only if i can locate the separator i can make it invisible , anyway thanks for your reply

คำตอบที่ดีที่สุด

odoo does not recognize @string attribute in xpath you can try using this group/separator[1] but i have never tested it , let me know if this works. Otherwise just xpath group and put if after.

อวตาร
ละทิ้ง
ผู้เขียน

Yeah indexing separator didnt work, thanks though!!

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ย. 22
4394
7
ส.ค. 20
5261
4
ม.ค. 19
6212
2
ธ.ค. 22
3056
Hide or remove button added by xpath แก้ไขแล้ว
8
ต.ค. 22
31995