From 38e3f5f31ca1598151c930664ddfa62da142e959 Mon Sep 17 00:00:00 2001 From: mgw <1392924357@qq.com> Date: Mon, 18 Mar 2024 09:15:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7=E5=8F=8D?= =?UTF-8?q?=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_warehouse/models/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_warehouse/models/model.py b/sf_warehouse/models/model.py index fbccbc76..8e0a3116 100644 --- a/sf_warehouse/models/model.py +++ b/sf_warehouse/models/model.py @@ -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()