Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4434 Visualizações

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
Cancelar

use groups= in xml of the view.

Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
mai. 24
9740
1
jun. 24
1750
2
nov. 22
9456
5
set. 21
7568
1
set. 19
8193