Odoo Help


This community 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.


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

Que Ninetynine
on 4/30/14, 6:25 PM 1,098 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"/>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


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