OpenERP Server

Bug #1162854 reported by Rogerio de Jose Paixao
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oemedical
Fix Released
High
Unassigned

Bug Description

Hi

When I tried install the module OeMedical : Module Data, causes this error

cal_data: loading data/WHO_products.xml
2013-04-01 15:25:58,197 1341 INFO medical openerp.modules.loading: module oemedical_data: loading data/WHO_list_of_essential_medicines.xml
2013-04-01 15:26:01,843 1341 INFO medical openerp.modules.loading: module oemedical_data: loading data/health_specialties.xml
2013-04-01 15:26:02,328 1341 INFO medical openerp.modules.loading: module oemedical_data: loading data/ethnic_groups.xml
2013-04-01 15:26:02,414 1341 INFO medical openerp.modules.loading: module oemedical_data: loading data/occupations.xml
2013-04-01 15:26:08,352 1341 INFO medical openerp.modules.loading: module oemedical_data: loading data/dose_units.xml
2013-04-01 15:26:08,380 1341 ERROR medical openerp.sql_db: bad query: insert into "product_uom" (id,"rounding","active","category_id","uom_type","name",create_uid,create_date,write_uid,write_date) values (15,'0.010','True',5,'smaller','mL',1,(now() at time zone 'UTC'),1,(now() at time zone 'UTC'))
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/sql_db.py", line 226, in execute
    res = self._obj.execute(query, params)
IntegrityError: null value in column "factor" violates not-null constraint

2013-04-01 15:26:08,380 1341 ERROR medical openerp.tools.convert: Parse error in /opt/openerp/addons/oemedical_data/data/dose_units.xml:11:
<record model="product.uom" id="product_uom_ml">
            <field name="name">mL</field>
            <field name="category_id" ref="product.product_uom_categ_vol"/>
            <field name="uom_type">smaller</field>
        </record>
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/tools/convert.py", line 847, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/opt/openerp/server/openerp/tools/convert.py", line 814, in _tag_record
    id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/opt/openerp/server/openerp/addons/base/ir/ir_model.py", line 963, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/opt/openerp/addons/product/product.py", line 127, in create
    return super(product_uom, self).create(cr, uid, data, context)
  File "/opt/openerp/server/openerp/osv/orm.py", line 4434, in create
    cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
  File "/opt/openerp/server/openerp/sql_db.py", line 161, in wrapper
    return f(self, *args, **kwargs)
  File "/opt/openerp/server/openerp/sql_db.py", line 226, in execute
    res = self._obj.execute(query, params)
IntegrityError: null value in column "factor" violates not-null constraint

2013-04-01 15:26:08,407 1341 INFO medical openerp.modules.loading: loading 1 modules...
2013-04-01 15:26:08,463 1341 INFO medical openerp.modules.loading: loading 35 modules...
2013-04-01 15:26:08,641 1341 INFO medical openerp.modules.loading: Modules loaded.
2013-04-01 15:26:08,653 1341 ERROR medical openerp.netsvc: Erro de Integridade
A operação não pode ser concluída, provavelmente devido aos seguintes fatores:
- exclusão: você pode estar tentando excluir um registro enquanto outros registros ainda fazem referência a ele
- criação/atualização: um campo obrigatório não está configurado corretamente

[objeto com referência: factor - factor]
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/netsvc.py", line 293, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/server/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/server/openerp/osv/osv.py", line 172, in wrapper
    netsvc.abort_response(1, _('Integrity Error'), 'warning', msg)
  File "/opt/openerp/server/openerp/netsvc.py", line 72, in abort_response
    raise openerp.osv.osv.except_osv(description, details)
except_osv: (u'Erro de Integridade', u'A opera\xe7\xe3o n\xe3o pode ser conclu\xedda, provavelmente devido aos seguintes fatores:\n- exclus\xe3o: voc\xea pode estar tentando excluir um registro enquanto outros registros ainda fazem refer\xeancia a ele\n- cria\xe7\xe3o/atualiza\xe7\xe3o: um campo obrigat\xf3rio n\xe3o est\xe1 configurado corretamente\n\n[objeto com refer\xeancia: factor - factor]')
2013-04-01 15:26:08,654 1341 INFO medical werkzeug: 127.0.0.1 - - [01/Apr/2013 15:26:08] "POST /web/dataset/call_button HTTP/1.1" 200 -

Revision history for this message
Parthiv Patel (parthiv-patel-deactivatedaccount) wrote :

but has been fixed in #79. Thank you for reporting.

Cheers,
Parthiv

Changed in oemedical:
assignee: nobody → Parthiv Patel (parthiv-patel)
importance: Undecided → High
status: New → 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.