column company_id on table res_users can't be set to NOT NULL
Bug #530580 reported by
Xavier (Open ERP)
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-
res = self._obj.
IntegrityError: column "company_id" contains null values
Changed in openobject-server: | |
status: | New → Confirmed |
Changed in openobject-server: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
Hello Xavier,
It seems like somewhere company_id field of res_user has been re-written and required=True is missing!
Thanks.