处理引入缺失报错
This commit is contained in:
@@ -7,6 +7,8 @@ from odoo import api, fields, models, _
|
|||||||
from odoo.exceptions import UserError
|
from odoo.exceptions import UserError
|
||||||
from odoo.addons.sf_base.commons.common import Common
|
from odoo.addons.sf_base.commons.common import Common
|
||||||
|
|
||||||
|
from odoo.tools import float_compare, float_is_zero
|
||||||
|
|
||||||
|
|
||||||
class MrpProduction(models.Model):
|
class MrpProduction(models.Model):
|
||||||
_inherit = 'mrp.production'
|
_inherit = 'mrp.production'
|
||||||
@@ -258,9 +260,6 @@ class MrpProduction(models.Model):
|
|||||||
)
|
)
|
||||||
i += 1
|
i += 1
|
||||||
for route in product_routing_workcenter:
|
for route in product_routing_workcenter:
|
||||||
if i == 1 and route.routing_type == '装夹预调':
|
|
||||||
workorders_values.append(
|
|
||||||
self.env['mrp.workorder'].json_workorder_str('', production, route))
|
|
||||||
if route.is_repeat is True:
|
if route.is_repeat is True:
|
||||||
workorders_values.append(
|
workorders_values.append(
|
||||||
self.env['mrp.workorder'].json_workorder_str(k, production, route))
|
self.env['mrp.workorder'].json_workorder_str(k, production, route))
|
||||||
|
|||||||
Reference in New Issue
Block a user