[IMP]Access Rights on MRP module
bzr revid: hsa@tinyerp.com-20121119120810-afr8rswrqtllz1kr
This commit is contained in:
@@ -78,3 +78,4 @@ access_resource_calendar_manufacturinguser,resource.calendar manufacturing.user,
|
||||
access_account_journal_mrp_manager,account.journal mrp manager,account.model_account_journal,mrp.group_mrp_manager,1,0,0,0
|
||||
access_purchase_order_stock_user,purchase.order stock user,purchase.model_purchase_order,stock.group_stock_user,1,1,1,0
|
||||
access_mrp_bom_purchase_manager,mrp.bom,model_mrp_bom,purchase.group_purchase_manager,1,0,0,0
|
||||
access_warehouse_manager,mrp.production,model_mrp_production,stock.group_stock_manager,1,0,0,0
|
||||
|
||||
|
@@ -1845,7 +1845,7 @@ class stock_move(osv.osv):
|
||||
if move.state == 'done':
|
||||
if frozen_fields.intersection(vals):
|
||||
raise osv.except_osv(_('Operation forbidden !'),
|
||||
_('Quantities, Unit of Measures, Products and Locations cannot be modified on stock moves that have already been processed (except by the Administrator).'))
|
||||
_('Quantities, Units of Measure, Products and Locations cannot be modified on stock moves that have already been processed (except by the Administrator).'))
|
||||
return super(stock_move, self).write(cr, uid, ids, vals, context=context)
|
||||
|
||||
def copy(self, cr, uid, id, default=None, context=None):
|
||||
|
||||
Reference in New Issue
Block a user