跳至内容
菜单
此问题已终结
1 回复
2473 查看

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
5129
1
5月 19
4094
1
5月 23
2079
2
2月 23
1978
2
9月 15
5608