优化代码结构

This commit is contained in:
mgw
2023-09-14 09:17:38 +08:00
parent 4d9c0474e6
commit 43d9c54626
3 changed files with 4 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ class sf_production_plan(models.Model):
], string='工单状态', tracking=True)
name = fields.Char(string='工单编号')
# selected = fields.Boolean(default=False)
order_number = fields.Char(string='订单号')
# order_number = fields.Char(string='订单号')
order_deadline = fields.Datetime(string='订单交期')
production_id = fields.Many2one('mrp.production', '关联制造订单')
product_qty = fields.Float(string='数量', digits='Product Unit of Measure', required=True, default=0.0)
@@ -32,7 +32,7 @@ class sf_production_plan(models.Model):
schedule_setting = fields.Selection([
('reverse', '倒排'), ('positive', '顺排')], string='排程设置', default='reverse')
product_id = fields.Many2one('product.product', '关联产品')
origin = fields.Char(string='来源')
origin = fields.Char(string='订单号')
# 加工时长
process_time = fields.Float(string='加工时长', digits=(16, 2))
# 实际加工时长、实际开始时间、实际结束时间

View File

@@ -11,7 +11,7 @@
<!-- <field name="sequence"/> -->
<field name="state" widget="badge" decoration-warning="state == 'draft'" decoration-success="state == 'done'"/>
<field name="name"/>
<field name="order_number"/>
<field name="origin"/>
<field name="order_deadline"/>
<field name="product_qty"/>
<field name="production_line_id"/>