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

Hi all:

I want to hide a purchase order line column in the purchase order form view based off a field I don't have exposed. Currently I can make a column unusable, but only if I pull out the field the conditional is based on (in this case project). 

Ideally I would make the purchase order line column invisible and would not need to see the conditional column.

This is version 12. Thanks!


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

Hi,  Just try like this    <field name="many2manyfield" widget="many2many">

    <tree string="String">
<field name="field_name" invisible="1"/>
<field name="sequence" />
<field name="price_discount" />
</tree>
</field>
or you can invisible the field by different conditions
<field name="field_name" attrs="{'invisible': [condition], 'column_invisible': [condition]}" string="field_string"/>

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

Hi Anu:

Thanks for your answer! It all works except for the column_invisible command. I get an error that a field was deleted but still used somewhere else.

-Alex

ผู้เขียน

I've created another post with my specific column_invisible error here:

https://www.odoo.com/forum/help-1/question/column-invisible-attribute-errors-out-152903

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ย. 24
1446
2
ส.ค. 19
3880
1
มิ.ย. 23
3551
1
พ.ย. 22
3866
Cannot create task แก้ไขแล้ว
2
มิ.ย. 20
4077