询价单字段排版及增加逻辑验证

This commit is contained in:
mgw
2024-12-24 17:27:08 +08:00
parent f6d69ea193
commit aaf3b20e65
12 changed files with 258 additions and 7 deletions

View File

@@ -287,6 +287,11 @@ class RePurchaseOrder(models.Model):
origin_sale_id = fields.Many2one('sale.order', string='销售订单号', compute='_compute_origin_sale_id')
# 合同编号
contract_number = fields.Char(string='合同编号', size=20)
# 合同概况
contract_summary = fields.Text(string='合同概况')
@api.depends('origin')
def _compute_purchase_type(self):
for purchase in self: