Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4443 Переглядів

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.

Аватар
Відмінити

use groups= in xml of the view.

Найкраща відповідь

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"/>
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
трав. 24
9777
1
черв. 24
1772
2
лист. 22
9483
5
вер. 21
7607
1
вер. 19
8218