Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5622 Lượt xem

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!


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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"/>

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 11 24
1182
2
thg 8 19
3657
1
thg 6 23
3327
1
thg 11 22
3587
Cannot create task Đã xử lý
2
thg 6 20
3786