跳至内容
菜单
此问题已终结
1 回复
5672 查看

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

相关帖文 回复 查看 活动
2
11月 24
1276
2
8月 19
3745
1
6月 23
3373
1
11月 22
3661
2
6月 20
3884