跳至内容
菜单
此问题已终结
1 回复
4415 查看

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"/>
形象
丢弃
相关帖文 回复 查看 活动
2
5月 24
9697
1
6月 24
1733
2
11月 22
9438
5
9月 21
7525
1
9月 19
8173