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

Hello,

I need to make 'taxes_id' field in Purchase order line, v15, as read only and unselectable. 

I made an inherited view, but didn't work:

{'readonly':[('state', 'in', ['draft','purchase', 'done', 'cancel'])]}

True

{'no_create_edit': True}



Thanks

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

Hi,

You can try like this:

xpath expr="//field[@name='order_line']/tree[1]/field[@name='taxes_id']" position="attributes"
"readonly">1
/xpath



Thanks

อวตาร
ละทิ้ง

<xpath expr="/field[@name='order_line']/tree[1]/field[@name='taxes_id']" position="attributes">
<attribute name="readonly">1</attribute>
</xpath>

ผู้เขียน

Thanks Niyas,
I tried it but still not working:
<?xml version="1.0"?>
<data>
<xpath expr="//field[@name='order_line']/tree[1]//field[@name='taxes_id']" position="attributes">
<attribute name="readonly">1</attribute>
<attribute name="force_save">1</attribute>
</xpath>
</data>

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

Hi,

Please try this XML code:


<xpath expr="/field[@name='order_line']/tree[1]/field[@name='taxes_id']"
           position="attributes">
        <attribute name="readonly">1</attribute>
    </xpath>




Hope it helps


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ก.ค. 23
5264
2
ต.ค. 22
4393
1
ต.ค. 22
8037
2
มิ.ย. 24
9991
0
เม.ย. 22
2967