Integrity Error while creating a new nonconformity in a fresh install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Management System |
Fix Released
|
Undecided
|
Sandy Carter (http://www.savoirfairelinux.com) |
Bug Description
Hi,
I have a fresh openerp (nightly) from .deb.
I installed the nonconformity module and I'm getting the following error while saving a new one:
Integrity Error
The operation cannot be completed, probably due to the following:
- deletion: you may be trying to delete a record while other records still reference it
- creation/update: a mandatory field is not correctly set
[object with reference: name - name]
The logs have:
2013-09-30 13:08:44,841 4177 ERROR openerptst openerp.sql_db: bad query: insert into "mgmtsystem_
Traceback (most recent call last):
File "/usr/lib/
res = self._obj.
IntegrityError: null value in column "name" violates not-null constraint
DETAIL: Failing row contains (1, 1, 2013-09-30 13:08:44.831817, 2013-09-30 13:08:44.831817, 1, null, null, 1, 1, null, t, null, 1, null, null, null, null, bla, null, 1, null, 3, draft, null, null, null, null, 001, 1, null, null, null, 2013-09-30, null, null, null, 1, null, null, null, null, null, null, null, null, 1).
2013-09-30 13:08:44,845 4177 ERROR openerptst openerp.netsvc: Integrity Error
The operation cannot be completed, probably due to the following:
- deletion: you may be trying to delete a record while other records still reference it
- creation/update: a mandatory field is not correctly set
[object with reference: name - name]
Traceback (most recent call last):
File "/usr/lib/
result = ExportService.
File "/usr/lib/
res = fn(db, uid, *params)
File "/usr/lib/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/usr/lib/
netsvc.
File "/usr/lib/
raise openerp.
except_osv: ('Integrity Error', 'The operation cannot be completed, probably due to the following:\n- deletion: you may be trying to delete a record while other records still reference it\n- creation/update: a mandatory field is not correctly set\n\n[object with reference: name - name]')
Any ideas?
Related branches
- Daniel Reis: Approve (lgtm (no test))
- Maxime Chambreuil (http://www.savoirfairelinux.com): Approve (code review)
-
Diff: 12 lines (+1/-1)1 file modifiedmgmtsystem_nonconformity/mgmtsystem_nonconformity.py (+1/-1)
Changed in openerp-mgmtsystem: | |
assignee: | nobody → Sandy Carter (http://www.savoirfairelinux.com) (sandy-carter) |
Changed in openerp-mgmtsystem: | |
status: | New → Confirmed |
Changed in openerp-mgmtsystem: | |
status: | Confirmed → Fix Released |