Accept Merge Request #1741: (feature/customer_supply -> develop)
Merge Request: 采购单取消错误提示修改 Created By: @廖丹龙 Accepted By: @秦圣 URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1741
This commit is contained in:
@@ -29,7 +29,7 @@ class PurchaseOrder(models.Model):
|
|||||||
# 如果你需要list形式的结果,可以将set转换为list
|
# 如果你需要list形式的结果,可以将set转换为list
|
||||||
account_moves = list(account_moves)
|
account_moves = list(account_moves)
|
||||||
if account_moves:
|
if account_moves:
|
||||||
raise UserError(_("请联系工厂生产经理对该采购单的账单进行取消"))
|
raise UserError(_("请联系工厂生产经理对该采购单的供应商账单进行取消"))
|
||||||
return super(PurchaseOrder, self).button_cancel()
|
return super(PurchaseOrder, self).button_cancel()
|
||||||
def action_view_production(self):
|
def action_view_production(self):
|
||||||
origins = [order.name for order in self.picking_ids]
|
origins = [order.name for order in self.picking_ids]
|
||||||
|
|||||||
Reference in New Issue
Block a user