Integrity Error while creating a new nonconformity in a fresh install

Bug #1233159 reported by EM
14
This bug affects 3 people
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_nonconformity" (id,"responsible_user_id","reference","type_id","author_user_id","manager_user_id","section_id","date","active","partner_id","description","stage_id","user_id","company_id","priority","state","system_id","ref","email_from",create_uid,create_date,write_uid,write_date) values (1,1,NULL,1,1,1,NULL,'2013-09-30','True',1,'bla',1,NULL,1,'3','draft',NULL,'001',NULL,1,(now() at time zone 'UTC'),1,(now() at time zone 'UTC'))
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 226, in execute
    res = self._obj.execute(query, params)
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/pymodules/python2.7/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 172, in wrapper
    netsvc.abort_response(1, _('Integrity Error'), 'warning', msg)
  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 71, in abort_response
    raise openerp.osv.osv.except_osv(description, details)
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

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
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.