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

Hello everyone,

I have 2 fields, a Boolean field in parent module and a float field in line module so, how to hide line field when parent boolean field is true(selected).

อวตาร
ละทิ้ง

Hi,

In line- you mean a float field inside a one2many field ??

ผู้เขียน

yes

ผู้เขียน

boolean field available in purchase order module and float field available in purchase order line. i want that float field hide when boolean field is selected

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

Hi,

    You can try with attrs in the float field in xml,

In tree view of the one2many field,

<field name="float_field" attrs="{'column_invisible': [('parent.boolean_field', '!=', False)]}"

Hope it helps,

Thanks.

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

Uncaught Error: Unknown field parent.x_use_global_tax in domain [["parent.x_use_global_tax","!=",false]]

this error is showing

ผู้เขียน

please give me solution for odoo v10