column company_id on table res_users can't be set to NOT NULL

Bug #530580 reported by Xavier (Open ERP)
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

I made a small modification to the sql_db logging (used logging.exception in exception handlers instead of warning), which uncovered the following (now buildbot-breaking) issue:

[2010-03-02 10:21:22,937] ERROR:db.cursor:bad query: ALTER TABLE "res_users" ALTER COLUMN "company_id" SET NOT NULL
Traceback (most recent call last):
  File "/mnt/openerp-buildbot/openerp_buildbot_slave/TrunkOfficial/trunk_openobject_server/bin/sql_db.py", line 120, in execute
    res = self._obj.execute(query, params)
IntegrityError: column "company_id" contains null values

ref: http://test.openobject.com/builders/trunkOfficial/builds/1042/steps/create-db/logs/create-db%20%3A%20Traceback

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Xavier,

It seems like somewhere company_id field of res_user has been re-written and required=True is missing!

Thanks.

Changed in openobject-server:
status: New → Confirmed
Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Can we fix this bug asap,

Thanks

Changed in openobject-server:
milestone: none → 5.2
Changed in openobject-server:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.