优化用户反馈

This commit is contained in:
mgw
2024-03-18 09:15:39 +08:00
parent 76ce105289
commit 38e3f5f31c

View File

@@ -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()