1.修复工件配送向导制造订单号能显示5个
2工件配送向导页面优化 3.生成制造订单同时工件配送默认路线
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of YiZuo. See LICENSE file for full copyright and licensing details.
|
||||
import logging
|
||||
from odoo.exceptions import UserError, ValidationError
|
||||
from datetime import datetime
|
||||
from odoo import models, api, fields, _
|
||||
@@ -44,7 +45,11 @@ class WorkpieceDeliveryWizard(models.TransientModel):
|
||||
def recognize_production(self):
|
||||
# production_ids = []
|
||||
# delivery_ids = []
|
||||
if len(self.production_ids) > 4:
|
||||
# aa = self.production_ids.workorder_ids.filtered(
|
||||
# lambda b: b.routing_type == "装夹预调").workpiece_delivery_ids.filtered(
|
||||
# lambda c: c.rfid_code == self.rfid_code)
|
||||
# logging.info('aa:%s' % aa)
|
||||
if len(self.production_ids) == 4:
|
||||
raise UserError('只能配送四个制造订单')
|
||||
else:
|
||||
if self.rfid_code:
|
||||
|
||||
Reference in New Issue
Block a user