@@ -28,7 +28,7 @@ class InheritPurchaseOrder(models.Model):
|
||||
start_date = fields.Date(string="申请日期", default=fields.Date.today())
|
||||
purchase_type = fields.Selection(
|
||||
[('fixed', '固定资产'), ('low', '低值易耗'), ('service', '服务'), ('book', '书籍报刊'), ('foot', '饭堂食材')],
|
||||
string="采购类型", default='fixed')
|
||||
string="采购标的类型", default='fixed')
|
||||
pay_way = fields.Selection([('onetime', '一次性'), ('installment', '分期')], string="付款方式", default='onetime')
|
||||
reason_text = fields.Text(string="申请事由")
|
||||
pay_line_ids = fields.One2many('purchase.order.pay.line', 'order_id', string="付款详情")
|
||||
@@ -100,7 +100,7 @@ class InheritPurchaseOrderLine(models.Model):
|
||||
|
||||
purchase_type = fields.Selection(
|
||||
[('fixed', '固定资产'), ('low', '低值易耗'), ('service', '服务'), ('book', '书籍报刊'), ('foot', '饭堂食材')],
|
||||
string="采购类型", default='fixed')
|
||||
string="采购标的类型", default='fixed')
|
||||
category_ids = fields.Many2many('product.category', string="产品分类", compute='_compute_purchase_type')
|
||||
|
||||
@api.depends('purchase_type')
|
||||
|
||||
@@ -65,6 +65,9 @@
|
||||
<field name="user_id"/>
|
||||
<field name="start_date"/>
|
||||
</xpath>
|
||||
<xpath expr="//page[@name='products']" position="attributes">
|
||||
<attribute name="string">明细</attribute>
|
||||
</xpath>p
|
||||
<xpath expr="//field[@name='date_order']" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
</xpath>
|
||||
|
||||
Reference in New Issue
Block a user