Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4438 Visualizzazioni

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.

Avatar
Abbandona

use groups= in xml of the view.

Risposta migliore

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"/>
Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mag 24
9749
1
giu 24
1755
2
nov 22
9463
5
set 21
7580
1
set 19
8199