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
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
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_
           position="attributes">
        <attribute name="readonly">1</attribute>
    </xpath>
Hope it helps
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|  | 3 thg 7 23  | 6488 | ||
|  | 2 thg 10 22  | 5838 | ||
|  | 1 thg 10 22  | 9449 | ||
|  | 2 thg 6 24  | 11805 | ||
|  | 0 thg 4 22  | 4114 |