采购类型

This commit is contained in:
李鹏宇
2026-05-08 17:39:19 +08:00
parent a95b3c733f
commit 2ae94df640
2 changed files with 2 additions and 0 deletions
@@ -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')
@@ -161,6 +161,7 @@
</xpath>
<xpath expr="//field[@name='date_order']" position="before">
<field name="pay_way"/>
<field name="purchase_type"/>
</xpath>
<xpath expr="//div[@name='date_approve']" position="attributes">
<attribute name="invisible">1</attribute>