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

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

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

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

大神们,进来看一下,是不是openerp的bug



  • 按照网上视频教程"30分钟开发OpenERP 功能模块",在7.0和8.0中做,总是做不成,大神们帮忙给看一下呀,我怀疑是代码bug。<br />视频网址:<br />[url=http://www.tudou.com/programs/view/hOvUnYgwV5U/]http://www.tudou.com/programs/view/hOvUnYgwV5U/[/url]<br />注:<br />在建立菜单那一步骤需要多建立一级菜单<br />我建立的是三层菜单,课程管理》》课程》》课程界面,按照视频上建立两层菜单出不来界面的。<br />在建立完菜单后,在界面中新建课程时出现下面错误提示:<br /><br /><br />OpenERP Server Error<br />Traceback (most recent call last):<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\http.py", line 348, in dispatch<br />    response["result"] = self.call_function(**self.params)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\http.py", line 220, in call_function<br />    return checked_call(self.db, *args, **kwargs)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\service\model.py", line 113, in wrapper<br />    return f(dbname, *args, **kwargs)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\http.py", line 215, in checked_call<br />    return self.func(*a, **kw)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\http.py", line 532, in call<br />    return self.method(*args, **kw)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\addons\web\controllers\main.py", line 1217, in call_kw<br />    return self.call_kw(model, method, args, kwargs)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\addons\web\controllers\main.py", line 1209, in call_kw<br />    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\osv\orm.py", line 4111, in create<br />    tuple([f[2] for f in columns if len(f) > 2])<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\sql_db.py", line 153, in wrapper<br />    return f(self, *args, **kwargs)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\sql_db.py", line 218, in execute<br />    res = self.obj.execute(query, params)<br />ProgrammingError: column "x_startdate" of relation "x_lesson" does not exist<br />LINE 1: INSERT INTO "x_lesson" ("id", "x_startdate", "x_enddate", "x...<br />                                      ^<br />提示上说:x_startdate等不存在,或者关系x_lesson不存在,我看了,确实确实是存在的,都是我创建的呀。。。。<br /><br />______________________________________________________________________________________<br /><br />[color=red]感谢开发群  上海-Joshua  大神的无私帮助,初步诊断,大神怀疑有个模块有bug,因时间太晚,明天继续诊断<br />请其他大神帮忙按照上面链接中的教程走一遍试试,openerp的发展离不开大神们的帮助,谢谢你们,辛苦了。[/color]



  • 按照网上视频教程"30分钟开发OpenERP 功能模块",在7.0和8.0中做,总是做不成,大神们帮忙给看一下呀,我怀疑是代码bug。<br />视频网址:<br />[url=http://www.tudou.com/programs/view/hOvUnYgwV5U/]http://www.tudou.com/programs/view/hOvUnYgwV5U/[/url]<br />注:<br />在建立菜单那一步骤需要多建立一级菜单<br />我建立的是三层菜单,课程管理》》课程》》课程界面,按照视频上建立两层菜单出不来界面的。<br />在建立完菜单后,在界面中新建课程时出现下面错误提示:<br /><br /><br />OpenERP Server Error<br />Traceback (most recent call last):<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\http.py", line 348, in dispatch<br />    response["result"] = self.call_function(**self.params)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\http.py", line 220, in call_function<br />    return checked_call(self.db, *args, **kwargs)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\service\model.py", line 113, in wrapper<br />    return f(dbname, *args, **kwargs)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\http.py", line 215, in checked_call<br />    return self.func(*a, **kw)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\http.py", line 532, in call<br />    return self.method(*args, **kw)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\addons\web\controllers\main.py", line 1217, in call_kw<br />    return self.call_kw(model, method, args, kwargs)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\addons\web\controllers\main.py", line 1209, in call_kw<br />    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\osv\orm.py", line 4111, in create<br />    tuple([f[2] for f in columns if len(f) > 2])<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\sql_db.py", line 153, in wrapper<br />    return f(self, *args, **kwargs)<br />  File "D:\GreenOpenERP-8.0-latest-win-x86\openerp\sql_db.py", line 218, in execute<br />    res = self.obj.execute(query, params)<br />ProgrammingError: column "x_startdate" of relation "x_lesson" does not exist<br />LINE 1: INSERT INTO "x_lesson" ("id", "x_startdate", "x_enddate", "x...<br />                                      ^<br />提示上说:x_startdate等不存在,或者关系x_lesson不存在,我看了,确实确实是存在的,都是我创建的呀。。。。<br /><br />______________________________________________________________________________________<br /><br />[color=red]感谢开发群  上海-Joshua  大神的无私帮助,初步诊断,大神怀疑有个模块有bug,因时间太晚,明天继续诊断<br />请其他大神帮忙按照上面链接中的教程走一遍试试,openerp的发展离不开大神们的帮助,谢谢你们,辛苦了。[/color]



  • 我也在学这个视屏 我在建立模型的时候就会出现问题<br /><br />OpenERP Server Error<br />Traceback (most recent call last):<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\http.py", line 348, in dispatch<br />    response["result"] = self._call_function(**self.params)<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\http.py", line 220, in _call_function<br />    return checked_call(self.db, *args, **kwargs)<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\service\model.py", line 113, in wrapper<br />    return f(dbname, *args, **kwargs)<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\http.py", line 215, in checked_call<br />    return self.func(*a, **kw)<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\http.py", line 532, in call<br />    return self.method(*args, **kw)<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\addons\web\controllers\main.py", line 1217, in call_kw<br />    return self._call_kw(model, method, args, kwargs)<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\addons\web\controllers\main.py", line 1209, in _call_kw<br />    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\addons\base\ir\ir_model.py", line 185, in write<br />    return super(ir_model,self).write(cr, user, ids, vals, context)<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\osv\orm.py", line 3839, in write<br />    result += self._columns[field].set(cr, self, id, field, vals[field], user, context=rel_context) or []<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\osv\fields.py", line 627, in set<br />    id_new = obj.create(cr, user, act[2], context=context)<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\addons\base\ir\ir_model.py", line 359, in create<br />    self.pool[vals['model']]._auto_init(cr, ctx)<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\osv\orm.py", line 2672, in _auto_init<br />    self._m2m_raise_or_create_relation(cr, f)<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\osv\orm.py", line 2978, in _m2m_raise_or_create_relation<br />    self._save_relation_table(cr, m2m_tbl)<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\osv\orm.py", line 2539, in _save_relation_table<br />    """, (relation_table, self._module))<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\sql_db.py", line 153, in wrapper<br />    return f(self, *args, **kwargs)<br />  File "E:\GreenOpenERP-8.0-latest-win-x86\openerp\sql_db.py", line 218, 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 /><br />不知道是什么原因


  • 管理员

    创建模型和字段的时候每添加一个保存一次。



  • [quote author=Joshua link=topic=16230.msg27460#msg27460 date=1392817673]<br />创建模型和字段的时候每添加一个保存一次。<br />[/quote]<br /><br />我也碰到这个问题了。<br />您的意思是要把模型或者字段删掉重新建立吗?<br />我是删除字段了,可是问题依旧。。



  • ProgrammingError: operator does not exist: character varying = boolean<br />LINE 5:                AND ir_module_module.name=false<br /><br />删除后重新建立模型和字段、保存时报错。。



  • 深命短暂, 请远离界面开滑....



  • [quote author=mrshelly link=topic=16230.msg29313#msg29313 date=1415668335]<br />深命短暂, 请远离界面开滑....<br />[/quote]<br /><br />好吧,code吧......



  • 好像是个bug,要先保存模型,再编辑然后添加字段。。。。


登录后回复
 

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