简体   繁体   English

在openerp 7中创建新数据库时出错

[英]Error when creating a new database in openerp 7

I try to create a new database using openerp interface, but i receive this error : 我尝试使用openerp接口创建一个新数据库,但是我收到此错误:

ProgrammingError: relation "ir_config_parameter" does not exist
LINE 1: SELECT "ir_config_parameter".id FROM "ir_config_parameter" W...
                                         ^

This is an error that I find quite often in openerp 7 (I am not sure about the later versions). 这是我在openerp 7中经常发现的错误(我不确定以后的版本)。 There are various causes. 原因多种多样。 To debug the error: 要调试错误:

  1. Verify that the model exist correctly. 验证模型是否正确存在。 In your addons directory/folder there should be a model in the base module. 在您的addons目录/文件夹中,基本模块中应该有一个模型。
  2. Verify what models was created in postgress using a tool such as pgAdmin III and that all fields were created. 验证使用pgAdmin III之类的工具在postgress中创建了哪些模型,以及是否创建了所有字段。
  3. Verify that you have the necessary user rights to create the different tables (this should not be a problem - but it is worth a check). 验证您具有创建不同表的必要用户权限(这应该不是问题,但是值得一试)。
  4. Verify that you did not make any changes in the base models that could have lead to the problem - this includes modules that change the base models via inheritance. 验证您没有对基础模型进行任何可能导致问题的更改-这包括通过继承更改基础模型的模块。
  5. Verify that the server is properly restarted - this does fix the problem sometimes. 验证服务器是否正确重启-有时可以解决问题。
  6. Use the command line to update your models. 使用命令行更新模型。 This also sometimes fix the problem. 有时这也可以解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM