Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2456 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 15
5100
1
maj 19
4053
1
maj 23
2054
2
lut 23
1966
2
wrz 15
5596