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

i created some groups like accountant and staff which have different field visibility and access.

In the Sale Order quotation form , I have hid the total prices,  terms and conditions, and also all necessary fields , by adding attr groups=".module_name.group_name"


but when I do the same on price_unit on the tree view in the order lines of the sale.order form , the following error is displayed

"Field 'price_unit' used in context"

how do i solve this? 

I have attached an image of what I mean.

https://ibb.co/ChQ0wQN 

I just want to hide the price_subtotal and price_unit from the order lines for all users who are staff and only show it to the accountants

아바타
취소
베스트 답변

Hi,
You can add a new field which is invisible to solve the case.

Sample:


field name="price_unit" invisible="1" groups="!group_name"

Thanks

아바타
취소
관련 게시물 답글 화면 활동
1
3월 15
5406
1
5월 19
4308
1
5월 23
2317
2
2월 23
2189
2
9월 15
5854