修改配送类型的字段关联形式,修改工件配送列表页的默认筛选条件

This commit is contained in:
胡尧
2025-02-17 13:23:32 +08:00
parent 3130ef4983
commit 8095a8a972
4 changed files with 8 additions and 15 deletions

View File

@@ -54,10 +54,7 @@ class WorkpieceDeliveryWizard(models.TransientModel):
}
}
def _get_agv_route_type_selection(self):
return self.env['sf.agv.task.route'].fields_get(['route_type'])['route_type']['selection']
delivery_type = fields.Selection(selection=_get_agv_route_type_selection, string='类型')
delivery_type = fields.Selection(related='route_id.route_type', string='类型')
def dispatch_confirm(self):
if len(self.workorder_ids) < 4: