优化代码结构
This commit is contained in:
@@ -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))
|
||||
# 实际加工时长、实际开始时间、实际结束时间
|
||||
|
||||
Reference in New Issue
Block a user