Odoo Help


Hide "scrap product" option from "users", show for "managers"

Que Ninetynine
on 4/30/14, 6:25 PM 1,539 views

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.

Josse Colpaert (jco)
on 4/30/14, 7:33 PM



| 5 2 8
Ahmadabad, India
On 5/1/14, 1:52 AM


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"/>

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 4/30/14, 6:25 PM
Seen: 1539 times
Last updated: 3/16/15, 8:10 AM