odoo10库存-销售订单行中包裹的bug
-
版本:20170101
在库存设置好了包裹、类型,但到入库时候选择不到包裹.在销售订单--->添加项目,中的 订单行,选择包裹会跳出错误,是没设置好,还是系统中的bug
Odoo Server Error
Traceback (most recent call last):
File "E:\python\odoo\http.py", line 638, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "E:\python\odoo\http.py", line 675, in dispatch
result = self._call_function(**self.params)
File "E:\python\odoo\http.py", line 331, in _call_function
return checked_call(self.db, *args, **kwargs)
File "E:\python\odoo\service\model.py", line 119, in wrapper
return f(dbname, *args, **kwargs)
File "E:\python\odoo\http.py", line 324, in checked_call
result = self.endpoint(*a, **kw)
File "E:\python\odoo\http.py", line 933, in call
return self.method(*args, **kw)
File "E:\python\odoo\http.py", line 504, in response_wrap
response = f(*args, **kw)
File "E:\python\odoo\addons\web\controllers\main.py", line 862, in call_kw
return self._call_kw(model, method, args, kwargs)
File "E:\python\odoo\addons\web\controllers\main.py", line 854, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "E:\python\odoo\api.py", line 681, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "E:\python\odoo\api.py", line 672, in call_kw_multi
result = method(recs, *args, **kwargs)
File "E:\python\odoo\models.py", line 5468, in onchange
record._onchange_eval(name, field_onchange[name], result)
File "E:\python\odoo\models.py", line 5366, in _onchange_eval
method_res = method(self)
File "E:\python\odoo\addons\sale_stock\models\sale_order.py", line 125, in _onchange_product_packaging
return self._check_package()
File "E:\python\odoo\addons\sale_stock\models\sale_order.py", line 196, in _check_package
q = default_uom._compute_quantity(pack.qty, self.product_uom)
File "E:\python\odoo\addons\product\models\product_uom.py", line 93, in _compute_quantity
self.ensure_one()
File "E:\python\odoo\models.py", line 4797, in ensure_one
raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: product.uom()