采购单取消错误提示修改

This commit is contained in:
liaodanlong
2025-01-13 17:02:41 +08:00
parent b398d1236e
commit b87343f017

View File

@@ -29,7 +29,7 @@ class PurchaseOrder(models.Model):
# 如果你需要list形式的结果可以将set转换为list
account_moves = list(account_moves)
if account_moves:
raise UserError(_("请联系工厂生产经理对该采购单的账单进行取消"))
raise UserError(_("请联系工厂生产经理对该采购单的供应商账单进行取消"))
return super(PurchaseOrder, self).button_cancel()
def action_view_production(self):
origins = [order.name for order in self.picking_ids]