修复日计划工单接口和http

This commit is contained in:
jinling.yang
2024-02-22 18:52:36 +08:00
parent a3f6946823
commit 5916b4a740
3 changed files with 5 additions and 6 deletions

View File

@@ -135,6 +135,8 @@ class ResMrpWorkOrder(models.Model):
workpiece_delivery_ids = fields.One2many('sf.workpiece.delivery', 'workorder_id', '工件配送')
is_delivery = fields.Boolean('是否配送完成', default=False)
rfid_code = fields.Char('RFID')
production_line_id = fields.Many2one('sf.production.line', related='production_id.production_line_id',
string='生产线')
def get_plan_workorder(self, production_line):
tomorrow = (date.today() + timedelta(days=+1)).strftime("%Y-%m-%d")
@@ -875,5 +877,3 @@ class CMMprogram(models.Model):
post_processing_name = fields.Char('后处理名称')
program_date = fields.Datetime('程序日期')
workorder_id = fields.Many2one('mrp.workorder', string="工单")