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
4418 Widoki

When tinkering with this a few months back, I thought I'd run across the steps (somewhere in this forum) to hide the "scrap product" (on various screens) from normal "users", and allow only "managers" to see it. Of course, now I can't find it after various search queries. Could someone point me in the right direction? Thank you.

Awatar
Odrzuć

use groups= in xml of the view.

Najlepsza odpowiedź

Hi,

You can hide field/button by providing group for the specific field/button. For hiding scrap products, you can do like following:

<button name="%(stock.move_scrap)d" string="Scrap Products" type="action" icon="terp-gtk-jump-to-ltr" context="{'scrap': True}" states="draft,waiting,confirmed,assigned" groups="group1"/>
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 24
9697
1
cze 24
1733
2
lis 22
9438
5
wrz 21
7525
1
wrz 19
8173