Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2462 Weergaven

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

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
mrt. 15
5106
1
mei 19
4055
1
mei 23
2065
2
feb. 23
1972
2
sep. 15
5598