Hi, Is it possible to hide recipe that we use in the production in OpenERP? I don't want my staff to know the recipe I use to produce my products, but I want to track the inventory levels of the ingredients to use the recipe
eg. Product A requires 100 Kg of flour and 1 unit of recipe 1 Recipe requires 20 Kg of Ingredient A, 10 Kg of Ingredient B
I was thinking.. what if we make the ingredients with not useful name like..
Ingredient A instead of Sugar Ingredient B instead of Salt Ingredient C instead of Pepper
Then create the BoM of Recipe with Ingredient A x 10 Kg, Ingredient B x 5 Kg, Ingredient C x 1 Kg? That way no one really knows what Ingredient A, B, or C is other than me who knows what A B C means.
It's easier than editing Record Rules, etc (which I have no idea how!)
The best way to hide your recipes is to manage mrp by yourself. Anyway, manufacturing manager must know recipes and also machine operators and manufacturing workers must know recipes. Salesman don't need to know recipes if you encode correct bill of materials, routing and procurement rules. When they encode a SO, the procurement rule generate MO who is viewed only by mrp manager or you. Purchasing and requisition users also don't need to know recipes to encode purchasing of raw materials if procurement (MTO, MTS and suppliers) is well configured. For this include in mrp managers and mrp users groups only your user, mrp manager user and mrp users that you want. Exclude from that groups other users (sales man, accountant etc.).
Generally speaking YES, you can use Record Rules for this (probably you're talking about BoMs).
But the specific solution may vary, depending on which users do what, and what impact does not beeing able to quey the BoM will impact on your processes.
A solution might involve some things being run by the scheduler, using the Admin user, or in the worst case modify some Python source code to use uid=1 instead of the current user for some key function calls.
If you are the only one that make use of the manufacturing module then you can simply only allow the administrator (you) have access to the module. But is other people help, then how are they suppose to know how to prepare what they are making. You can also make the line part of the BoM only viewable by the administrator. In both cases, look for the string that is displaying the views in their xml and add base.group_system. and this will simply hide the view from anyone that is not logged in as an administrator with full access
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
|Asked: 10/10/13, 7:19 AM|
|Seen: 1999 times|
|Last updated: 3/16/15, 8:10 AM|