修改配送类型的字段关联形式,修改工件配送列表页的默认筛选条件
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user