采购类型
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user