Odoo Help

0

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

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

Nehal

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

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

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

Register

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)

Stats

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