[IMP] give access rights to the user in stock ymls

bzr revid: fka@tinyerp.com-20130228132836-e2f7rknoodpqix0p
This commit is contained in:
Foram Katharotiya (OpenERP)
2013-02-28 18:58:36 +05:30
parent 721daed4c6
commit 8009999e29
3 changed files with 36 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
<record id="group_stock_manager" model="res.groups">
<field name="name">Manager</field>
<field name="category_id" ref="base.module_category_warehouse_management"/>
<field name="implied_ids" eval="[(4, ref('group_stock_user'))]"/>
<field name="implied_ids" eval="[(4, ref('group_stock_user')), (4, ref('account.group_account_user'))]"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
+30
View File
@@ -1,3 +1,8 @@
-
Only stock manager can change the price and update stock of products, so let's check data with giving the access rights of manager
-
!context
uid: 'res_users_stock_manager'
-
I update the price of the 15” LCD Monitor.
-
@@ -32,6 +37,11 @@
!python {model: product.product}: |
product = self.browse(cr, uid, ref('product_product_6'), context=context)
assert product.qty_available == 10, "Stock is not updated."
-
Stock user can merge inventory, so let's check data with giving the access rights of user.
-
!context
uid: 'res_users_stock_user'
-
I merge inventory.
-
@@ -42,11 +52,21 @@
-
!python {model: stock.inventory.merge }: |
self.do_merge(cr, uid, [ref('merge_inventory')], context=context)
-
Only stock manager cancelled inventory, so let's check data with giving the access rights of manager
-
!context
uid: 'res_users_stock_manager'
-
I cancel inventory.
-
!python {model: stock.inventory}: |
self.action_cancel_inventory(cr, uid, [ref('stock_inventory_0')])
-
stock user can reset inventory, so let's check data with giving the access rights of user
-
!context
uid: 'res_users_stock_user'
-
I reset to draft inventory.
-
@@ -108,11 +128,21 @@
!python {model: product.product}: |
product = self.browse(cr, uid, ref('product_product_6'), context=context)
assert product.virtual_available == 100, "Vitual stock is not updated."
-
Only stock manager can close physical inventory, so let's check data with giving the access rights of manager
-
!context
uid: 'res_users_stock_manager'
-
I close physical inventory of 15” LCD Monitor.
-
!python {model: stock.inventory}: |
self.action_done(cr, uid, [ref('stock_inventory_0')], context=context)
-
Stock user can check closed move and real stock, so let's check data with giving the access rights of user
-
!context
uid: 'res_users_stock_user'
-
I check closed move and real stock of 15” LCD Monitor after closed physical inventory.
-
+5
View File
@@ -1,3 +1,8 @@
-
Stock user can print all reports related to stock, so let's check data with giving the access rights of user.
-
!context
uid: 'res_users_stock_user'
-
I print a stock overview report of location.
-