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

I have a custom module that adds features to the invoices, but I want to take an account models field and remove its invisible attribute. I know how to do this from developer mode, but I would like to enforce it with my invoicing module. 

아바타
취소

Look how inheritance work in odoo: https://goo.gl/4Zyc9d

베스트 답변

Inherit the view and use xpath with attributes tag

Eg:

<xpath expr="//field[@name='account_id']" position="attributes">

     <attribute name="invisible">False</attribute>

</xpath>

아바타
취소
관련 게시물 답글 화면 활동
3
2월 25
3057
1
11월 24
2862
1
12월 23
2708
1
4월 21
7838
6
1월 24
15590