Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

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()
    2_1483944817802_订单行.png 1_1483944817802_包裹内型.png 0_1483944817801_包裹.png



  • 试试先选产品和单位



  • 包裹 类型.... 包装类型 不是同一个概念

    所以你选择不到



  • @jeffery 但 询价单 可以选择到,就是会跳出如上错误,所以应该是bug,或者设置问题


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待