콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5948 화면

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
1603
2
8월 19
4052
1
6월 23
3728
1
11월 22
4041
Cannot create task 해결 완료
2
6월 20
4237