添加紧急采购字段

This commit is contained in:
mgw
2024-12-30 08:57:05 +08:00
parent 3c8fbcf9f9
commit a3a2c96d00
2 changed files with 4 additions and 0 deletions

View File

@@ -292,6 +292,9 @@ class RePurchaseOrder(models.Model):
# 合同概况
contract_summary = fields.Text(string='合同概况')
# 选择是否为紧急采购
urgent_purchase = fields.Selection([('no', ''), ('yes', '')], string='紧急采购', default='no')
@api.depends('origin')
def _compute_purchase_type(self):
for purchase in self: