跳至内容
菜单
此问题已终结

Hi.

I get the error below after update modules with bazaar and update the database of OpenERP with the new modules.

Anybody knows what can I do?

...
2013-12-13 10:56:47,788 3658 INFO copia_gf openerp.addons.base.ir.ir_model: Deleting 2252@account.account.template
2013-12-13 10:56:47,810 3658 INFO copia_gf openerp.addons.base.ir.ir_model: Deleting 29@account.account.type
2013-12-13 10:56:47,812 3658 ERROR copia_gf openerp.sql_db: bad query: delete from account_account_type where id IN (29)
Traceback (most recent call last):
          File "/opt/openerp/server/openerp/sql_db.py", line 226, in execute
            res = self._obj.execute(query, params)
    IntegrityError: null value in column "user_type" violates not-null constraint
    CONTEXT:  SQL statement "UPDATE ONLY "public"."account_account_template" SET "user_type" = NULL WHERE $1 OPERATOR(pg_catalog.=) "user_type""
...
形象
丢弃

On upgrade, some code is attempting to delete record from account_account_type with id=29 but that is been referenced in account_account_template and it is mandatory.

编写者

I update modules with bazaar again and all was ok. Aparently there is a bug with the registers update during upgrade of modules.

相关帖文 回复 查看 活动
1
3月 23
6225
2
2月 23
3485
1
3月 15
4976
1
3月 15
5211
module update 已解决
3
3月 15
5642