diff --git a/yuthon_purchase/models/inherit_purchase_order.py b/yuthon_purchase/models/inherit_purchase_order.py index c9e524012..889f591c4 100644 --- a/yuthon_purchase/models/inherit_purchase_order.py +++ b/yuthon_purchase/models/inherit_purchase_order.py @@ -37,6 +37,7 @@ class InheritPurchaseOrder(models.Model): default=lambda self: [(6, 0, [self.env.user.id])]) pay_way = fields.Selection([('onetime', '一次性'), ('installment', '分期')], string="付款方式", default='onetime') reason_text = fields.Text(string="申请事由") + purchase_type = fields.Selection([('fixed_asset', '固定资产采购'), ('sporadic', '零星采购')], string="采购类型", default='fixed_asset') is_modify = fields.Boolean(string="可修改") pay_line_ids = fields.One2many('purchase.order.pay.line', 'order_id', string="付款详情") is_company = fields.Boolean(string="本公司", default=True, compute='_compute_is_company',search='_search_part_of_company') diff --git a/yuthon_purchase/views/inherit_purchase_order_views.xml b/yuthon_purchase/views/inherit_purchase_order_views.xml index 03617209b..0f27615d9 100644 --- a/yuthon_purchase/views/inherit_purchase_order_views.xml +++ b/yuthon_purchase/views/inherit_purchase_order_views.xml @@ -161,6 +161,7 @@ + 1