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

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

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

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

不知道这个问题大家见过没(添加many to many字段报错)



  • 一旦向一个模型中 输入一个字段类型 many to many的时候就会报出下面错误<br /><br />百度了一下 查到这个贴子 https://bugs.launchpad.net/openobject-server/+bug/1124130<br /><br />帖子说的是添加many to one 会出错<br /><br />下面帖子貌似给出一个补丁 不过本人小白 求教那个补丁具体该怎么用<br /><br />OpenERP Server Error<br />Client Traceback (most recent call last):<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\web\http.py", line 204, in dispatch<br />    response["result"] = method(self, **self.params)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\web\controllers\main.py", line 1128, in call_kw<br />    return self._call_kw(req, model, method, args, kwargs)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\web\controllers\main.py", line 1120, in _call_kw<br />    return getattr(req.session.model(model), method)(*args, **kwargs)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\web\session.py", line 42, in proxy<br />    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\web\session.py", line 30, in proxy_method<br />    result = self.session.send(self.service_name, method, *args)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\web\session.py", line 103, in send<br />    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)<br /><br /><br />Server Traceback (most recent call last):<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\web\session.py", line 89, in send<br />    return openerp.netsvc.dispatch_rpc(service_name, method, args)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\netsvc.py", line 292, in dispatch_rpc<br />    result = ExportService.getService(service_name).dispatch(method, params)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\service\web_services.py", line 626, in dispatch<br />    res = fn(db, uid, *params)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\osv\osv.py", line 190, in execute_kw<br />    return self.execute(db, uid, obj, method, *args, **kw or {})<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\osv\osv.py", line 132, in wrapper<br />    return f(self, dbname, *args, **kwargs)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\osv\osv.py", line 199, in execute<br />    res = self.execute_cr(cr, uid, obj, method, *args, **kw)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\osv\osv.py", line 187, in execute_cr<br />    return getattr(object, method)(cr, uid, *args, **kw)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\base\ir\ir_model.py", line 200, in create<br />    self.pool.get(vals['model'])._auto_init(cr, ctx)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\osv\orm.py", line 3028, in _auto_init<br />    self._m2m_raise_or_create_relation(cr, f)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\osv\orm.py", line 3334, in _m2m_raise_or_create_relation<br />    self._save_relation_table(cr, m2m_tbl)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\osv\orm.py", line 2895, in _save_relation_table<br />    """, (relation_table, self._module))<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\sql_db.py", line 161, in wrapper<br />    return f(self, *args, **kwargs)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\sql_db.py", line 226, in execute<br />    res = self._obj.execute(query, params)<br />ProgrammingError: operator does not exist: character varying = boolean<br />LINE 5:                AND ir_module_module.name=false<br />                                                ^<br />HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.<br /><br />



  • 一旦向一个模型中 输入一个字段类型 many to many的时候就会报出下面错误<br /><br />百度了一下 查到这个贴子 https://bugs.launchpad.net/openobject-server/+bug/1124130<br /><br />帖子说的是添加many to one 会出错<br /><br />下面帖子貌似给出一个补丁 不过本人小白 求教那个补丁具体该怎么用<br /><br />OpenERP Server Error<br />Client Traceback (most recent call last):<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\web\http.py", line 204, in dispatch<br />    response["result"] = method(self, **self.params)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\web\controllers\main.py", line 1128, in call_kw<br />    return self._call_kw(req, model, method, args, kwargs)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\web\controllers\main.py", line 1120, in _call_kw<br />    return getattr(req.session.model(model), method)(*args, **kwargs)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\web\session.py", line 42, in proxy<br />    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\web\session.py", line 30, in proxy_method<br />    result = self.session.send(self.service_name, method, *args)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\web\session.py", line 103, in send<br />    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)<br /><br /><br />Server Traceback (most recent call last):<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\web\session.py", line 89, in send<br />    return openerp.netsvc.dispatch_rpc(service_name, method, args)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\netsvc.py", line 292, in dispatch_rpc<br />    result = ExportService.getService(service_name).dispatch(method, params)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\service\web_services.py", line 626, in dispatch<br />    res = fn(db, uid, *params)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\osv\osv.py", line 190, in execute_kw<br />    return self.execute(db, uid, obj, method, *args, **kw or {})<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\osv\osv.py", line 132, in wrapper<br />    return f(self, dbname, *args, **kwargs)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\osv\osv.py", line 199, in execute<br />    res = self.execute_cr(cr, uid, obj, method, *args, **kw)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\osv\osv.py", line 187, in execute_cr<br />    return getattr(object, method)(cr, uid, *args, **kw)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\addons\base\ir\ir_model.py", line 200, in create<br />    self.pool.get(vals['model'])._auto_init(cr, ctx)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\osv\orm.py", line 3028, in _auto_init<br />    self._m2m_raise_or_create_relation(cr, f)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\osv\orm.py", line 3334, in _m2m_raise_or_create_relation<br />    self._save_relation_table(cr, m2m_tbl)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\osv\orm.py", line 2895, in _save_relation_table<br />    """, (relation_table, self._module))<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\sql_db.py", line 161, in wrapper<br />    return f(self, *args, **kwargs)<br />  File "E:\GreenOpenERP-7.0-latest-win-x86\openerp\sql_db.py", line 226, in execute<br />    res = self._obj.execute(query, params)<br />ProgrammingError: operator does not exist: character varying = boolean<br />LINE 5:                AND ir_module_module.name=false<br />                                                ^<br />HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.<br /><br />



  • 人生苦短,我用python<br /><br />施主请远离界面开发。越容易实现的东西越难维护。



  • [quote author=Jeff link=topic=16238.msg27478#msg27478 date=1392903793]<br />人生苦短,我用python<br /><br />施主请远离界面开发。越容易实现的东西越难维护。<br />[/quote]<br /><br />可是我是新手,想先熟悉熟悉软件 :'( :'( :'(



  • 熟悉软件就使用它. 而不是用它开发.......


登录后回复
 

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