搭建排程基础架构

This commit is contained in:
mgw
2023-08-24 11:24:27 +08:00
parent 0b30408aae
commit bf7ef78b20
5 changed files with 111 additions and 7 deletions

View File

@@ -13,7 +13,8 @@ class sf_pl_plan(models.Model):
# sequence = fields.Integer(string='序号', required=True, copy=False, readonly=True, index=True,
# default=lambda self: self.env['ir.sequence'].sudo().next_by_code('sf.pl.plan'))
sequence = fields.Integer(string='序号', required=True, copy=False, readonly=True, index=True)
current_operation_name = fields.Char(string='当前工序名称', size=64, default='坯料预制')
current_operation_name = fields.Char(string='当前工序名称', size=64, default='生产计划')
production_line_id = fields.Many2one('sf.production.line', string='生产线')
@api.model
def create(self, vals):