credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #05615
Re: [Merge] lp:~savoirfairelinux-openerp/openupgrade-server/NoDemo into lp:openupgrade-server
Sylvain: sorry I didn't see that bug report
Stefan:
Even without installing any modules, it will try to install demo data:
in openerp61/etc/openerp.cfg:
without_demo = False
in openupgrade70/etc/openerp.cfg:
without_demo = True
$ createdb upgrade && \
./openerp61/bin/start_openerp -d upgrade --stop-after-init && \
./openupgrade70/bin/start_openerp -d upgrade --update all --stop-after-init
...
2013-10-30 13:45:27,095 2134 ERROR upgrade openerp.tools.convert: Parse error in openupgrade70/parts/openerp/openerp/addons/base/res/res_partner_image_demo.xml:17:
<record id="base.res_partner_address_5" model="res.partner">
<field name="image">iVBORw0KGgoAAAANSUhEUgAAAFYAAACACAYAAACRMZ7FAAAgAElEQVR4XpW9B5hk...</field>
</record>
Traceback (most recent call last):
File "openupgrade70/parts/openerp/openerp/tools/convert.py", line 850, in parse
self._tags[rec.tag](self.cr, rec, n)
File "openupgrade70/parts/openerp/openerp/tools/convert.py", line 817, 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 "openupgrade70/parts/openerp/openerp/addons/base/ir/ir_model.py", line 981, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "openupgrade70/parts/openerp/openerp/addons/base/res/res_partner.py", line 497, in create
new_id = super(res_partner, self).create(cr, uid, vals, context=context)
File "openupgrade70/parts/openerp/openerp/osv/orm.py", line 4455, in create
cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
File "openupgrade70/parts/openerp/openerp/sql_db.py", line 161, in wrapper
return f(self, *args, **kwargs)
File "openupgrade70/parts/openerp/openerp/sql_db.py", line 226, in execute
res = self._obj.execute(query, params)
IntegrityError: null value in column "name" violates not-null constraint
DÉTAIL : Failing row contains (60, 1, 2013-10-30 13:45:22.176429, 2013-10-30 13:45:22.176429, 1, null, null, 0, null, t, en_US, t, null, null, null, null, 1, null, null, f, f, null, null, \x6956424f5277304b47676f414141414e535568455567414141465941414143..., f, null, null, null, null, null, contact, null, null, null, null, null, null, null, null, null, f, null).
--
https://code.launchpad.net/~savoirfairelinux-openerp/openupgrade-server/NoDemo/+merge/193145
Your team OpenUpgrade Committers is subscribed to branch lp:openupgrade-server.
References