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

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

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

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

OpenERP 报价单转订单时出错



  • OpenERP 报价单转订单时出错<br /><br />报价单保存OK, 点订单确认时出现以下错误<br /><br />OpenERP Server Error<br />Client Traceback (most recent call last):<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\web\http.py", line 204, in dispatch<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\web\controllers\main.py", line 1132, in call_button<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\web\controllers\main.py", line 1120, in _call_kw<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\web\session.py", line 42, in proxy<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\web\session.py", line 30, in proxy_method<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\web\session.py", line 103, in send<br /><br /><br />Server Traceback (most recent call last):<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\web\session.py", line 89, in send<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\netsvc.py", line 292, in dispatch_rpc<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\service\web_services.py", line 626, in dispatch<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\osv.py", line 188, in execute_kw<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\osv.py", line 131, in wrapper<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\osv.py", line 197, in execute<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\osv.py", line 185, in execute_cr<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\portal_sale\portal_sale.py", line 64, in action_button_confirm<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\sale\sale.py", line 577, in action_button_confirm<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\wkf_service.py", line 119, in trg_validate<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\instance.py", line 43, in validate<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 60, in process<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 175, in _split_test<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 183, in _join_test<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 40, in create<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 60, in process<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 175, in _split_test<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 183, in _join_test<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 40, in create<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 60, in process<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 175, in _split_test<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 183, in _join_test<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 40, in create<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 52, in process<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 106, in _execute<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\wkf_expr.py", line 67, in execute<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\wkf_expr.py", line 57, in _eval_expr<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\tools\safe_eval.py", line 241, in safe_eval<br />  File "", line 1, in <module><br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\orm.py", line 374, in function_proxy<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\sale_stock\sale_stock.py", line 447, in action_ship_create<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\sale_stock\sale_stock.py", line 415, in _create_pickings_and_procurements<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\stock\stock.py", line 622, in create<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\mail\mail_thread.py", line 242, in create<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\orm.py", line 4319, in create<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\orm.py", line 2489, in _add_missing_default_values<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\orm.py", line 1583, in default_get<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\delivery\stock.py", line 140, in <lambda><br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\delivery\stock.py", line 138, in _get_default_uom<br />IndexError: list index out of range



  • OpenERP 报价单转订单时出错<br /><br />报价单保存OK, 点订单确认时出现以下错误<br /><br />OpenERP Server Error<br />Client Traceback (most recent call last):<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\web\http.py", line 204, in dispatch<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\web\controllers\main.py", line 1132, in call_button<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\web\controllers\main.py", line 1120, in _call_kw<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\web\session.py", line 42, in proxy<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\web\session.py", line 30, in proxy_method<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\web\session.py", line 103, in send<br /><br /><br />Server Traceback (most recent call last):<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\web\session.py", line 89, in send<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\netsvc.py", line 292, in dispatch_rpc<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\service\web_services.py", line 626, in dispatch<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\osv.py", line 188, in execute_kw<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\osv.py", line 131, in wrapper<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\osv.py", line 197, in execute<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\osv.py", line 185, in execute_cr<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\portal_sale\portal_sale.py", line 64, in action_button_confirm<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\sale\sale.py", line 577, in action_button_confirm<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\wkf_service.py", line 119, in trg_validate<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\instance.py", line 43, in validate<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 60, in process<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 175, in _split_test<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 183, in _join_test<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 40, in create<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 60, in process<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 175, in _split_test<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 183, in _join_test<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 40, in create<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 60, in process<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 175, in _split_test<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 183, in _join_test<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 40, in create<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 52, in process<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\workitem.py", line 106, in _execute<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\wkf_expr.py", line 67, in execute<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\workflow\wkf_expr.py", line 57, in _eval_expr<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\tools\safe_eval.py", line 241, in safe_eval<br />  File "", line 1, in <module><br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\orm.py", line 374, in function_proxy<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\sale_stock\sale_stock.py", line 447, in action_ship_create<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\sale_stock\sale_stock.py", line 415, in _create_pickings_and_procurements<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\stock\stock.py", line 622, in create<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\mail\mail_thread.py", line 242, in create<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\orm.py", line 4319, in create<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\orm.py", line 2489, in _add_missing_default_values<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server.\openerp\osv\orm.py", line 1583, in default_get<br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\delivery\stock.py", line 140, in <lambda><br />  File "C:\Program Files (x86)\OpenERP 7.0-20130828-231133\Server\server\openerp\addons\delivery\stock.py", line 138, in _get_default_uom<br />IndexError: list index out of range



  • 用系统默认的服务是可以的,但自己建的物料就不行了。



  • 该产品的相关单位没有配置好. 或者你修改过 计量单位..



  • 重量 的单位必须是“重量”这个单位类别里换算比率为1的那个单位<br /><br />你是不是把公斤(kg)删除了?



  • 是的有修改过计量单位,并且把Kg删除了,重建可以吗?<br /><br />一开始建物料时不小心单位建成件,无论如何也改不了Kg,说是不在计量单位组的不可更改,索性删除Kg,建立Kg/单件,看来是这里有问题了。<br /><br />这里的问题是导至需求单无法建生成,所以出现错误。


  • 管理员

    如果没有删除重量的单位分类(Unit of Measure Categories),添加KG后挂到 Weight上就可以,如果已经删除了Weight。<br />因为是它是通过xml关联的,只添加数据是不行的。在手动添加完Weight之后,先查看Weight的数据库id,你可以通过url查看,一般是id=?? 或者在登陆开发者模式后在开发者菜单点击 View Log<br /><br />应该到Settings / Configuration / Sequences & Identifiers / External Identifiers 搜索 “product_uom_categ_kgm” 如果找到则把Record ID改为你新的Weight id,如果没找到则新建<br /><br />Module: product<br />External Identifier: product_uom_categ_kgm<br />Model Name: product.uom.categ<br />Record ID: Weight的数据库id<br /><br />



  • 首先感谢各位的热情回复,<br />重新建立Kg/重量后错误消失,<br />看来系统默认的配置是不能随便改的。



  • 今天遇到同样的问题...留个脚印<br />如果之前没安装过delivery模块,删除重量基本单位后,再安装delivery模块会报同样的错误。<br /><br />报错的原因在这里 openerp\addons\delivery\stock.py<br />[code]class stock_move(osv.osv):<br />...<br />    def _get_default_uom(self,cr,uid,c):<br />        uom_categ, uom_categ_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'product', 'product_uom_categ_kgm')<br />        return self.pool.get('product.uom').search(cr, uid, [('category_id', '=', uom_categ_id),('factor','=',1)])[0]<br />    [/code]<br /><br />不知道这算不算安装上的一个bug<br />最好是不管系统原来有没有,安装delivery时,强制写入一条record,再次声明重量的默认单位<br /><br /><br />另外,自认为简单的解决办法(可能会覆盖一些你做过的修改):<br />将 addons\product\product_data.xml 中的<br /><data noupdate="1"> 改为<br /><data noupdate="0"><br />升级product模块,再安装delivery。<br />


登录后回复
 

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