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

I've added a supplier number and a customer number, and now I need to add this number in the tree view. The problem is that this 2 number are shown in the customer tree and the supplier tree.

How could I hide a column depending on if it is a Suppliers tree view or a Customers tree view ?

Help me please.

I found this one but it doesn't help

https://www.odoo.com/es_ES/forum/help-1/question/how-to-add-a-field-conditional-to-tree-view-of-customer-14707

아바타
취소
베스트 답변

Hello,

May be this will helpful you.

<tree>
    <field name="customer_number" invisible="context.get('default_customer', False)" />
  <field name="supplier_number" invisible="context.get('default_supplier', False)" />  
</tree>
아바타
취소
작성자 베스트 답변

Thank you very much

It worked

아바타
취소