紧急采购默认为是
This commit is contained in:
@@ -323,7 +323,7 @@ class RePurchaseOrder(models.Model):
|
|||||||
contract_summary = fields.Text(string='合同概况')
|
contract_summary = fields.Text(string='合同概况')
|
||||||
|
|
||||||
# 选择是否为紧急采购
|
# 选择是否为紧急采购
|
||||||
urgent_purchase = fields.Selection([('no', '否'), ('yes', '是')], string='紧急采购', default='no')
|
urgent_purchase = fields.Selection([('no', '否'), ('yes', '是')], string='紧急采购', default='yes')
|
||||||
|
|
||||||
@api.depends('origin')
|
@api.depends('origin')
|
||||||
def _compute_purchase_type(self):
|
def _compute_purchase_type(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user