优化用户反馈
This commit is contained in:
@@ -427,7 +427,7 @@ class Sf_stock_move_line(models.Model):
|
||||
def action_revert_inventory(self):
|
||||
# 检查用户是否有执行操作的权限
|
||||
if not self.env.user.has_group('sf_warehouse.group_sf_stock_user'):
|
||||
raise UserError(_('You do not have the necessary permissions to perform this action.'))
|
||||
raise UserError(_('抱歉,只有库管人员可以执行此动作'))
|
||||
|
||||
# 如果用户有权限,调用父类方法
|
||||
return super(CustomStockMoveLine, self).action_revert_inventory()
|
||||
|
||||
Reference in New Issue
Block a user