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

Is it possible to use the following?:

<field .. .. attrs="{'invisible': [('partner_id.name', '!=', False)]}">

The main question is: is the dot ('.') allowed?

We couldn't get it to work..

아바타
취소
베스트 답변

Well you could not get it works, because it does not. To make such things, you need to add fields on the current model (see fields.related)

아바타
취소
작성자

OK, you already gave an alternative solution! Thanks!

작성자

Why does a +domain+ allow the dot notation? and attrs not? Do you know why? Or where it is documented?

A related field in not set till you save. What happens if you've got a boolean and depending on the setting of the boolean you will be able to see certain fields.

관련 게시물 답글 화면 활동
1
3월 24
5162
2
7월 18
7943
1
3월 15
11837
0
3월 15
4488
2
9월 24
4279