Comment 7 for bug 673525

Revision history for this message
Lorenzo Battistini (elbati) wrote :

Just tried with current trunk.
Event with account, same error:

[2010-11-12 11:01:04,389][l10n6] INFO:init:module account_accountant: loading security/account_security.xml
[2010-11-12 11:01:04,469][l10n6] ERROR:db.cursor:bad query: insert into "res_users" (id,"menu_id","address_id","context_lang","company_id","menu_tips","active","password",create_uid,create_date) values (3,1,NULL,E'en_US',1,E'True',E'True',E'',1,now())
Traceback (most recent call last):
  File "/home/elbati/workspace/openerp/server/openobject-server/bin/sql_db.py", line 122, in execute
    res = self._obj.execute(query, params)
IntegrityError: null value in column "name" violates not-null constraint

[2010-11-12 11:01:04,470][l10n6] ERROR:tools.convert.xml_import:Parse error in /home/elbati/workspace/openerp/addons/openobject-addons/account_accountant/security/account_security.xml:9:
<record id="base.user_demo" model="res.users">
            <field name="groups_id" eval="[(4, ref('account.group_account_user'))]"/>
        </record>
MODEL 29 34 name

What is the purpose of this commit
http://bazaar.launchpad.net/~openerp-dev/openobject-addons/trunk-dev-addons3/revision/4563#sale/security/sale_security.xml ?
In a non-demo environment, the 'base.user_demo' does not exist, hence the error