1、处理返工报错,2、保存的合同文档添加对应销售订单号

This commit is contained in:
yuxianghui
2025-06-05 09:16:02 +08:00
parent b7642d1e0f
commit 2b3a2dd21c
2 changed files with 3 additions and 2 deletions

View File

@@ -207,7 +207,8 @@ class SaleOrder(models.Model):
'name': contract_file_name,
'attachment_id': attachment.id,
'folder_id': workspace,
'res_model': 'sale.order'
'res_model': 'sale.order',
'res_id': self.id,
})
self.write({