credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #05228
[Bug 1192094] Re: Demo Data isn't loaded in openupgrade server while updating
One thing to note, is that demo data between two major releases of
OpenERP is usually incompatible. We had a stanza in the migration script
of 6.1/base to set demo to False in every module, thereby disabling the
loading of the additional demo data of 6.1 on top of the 6.0 data. We
should have it in 7.0 as well, I believe.
But in this case, the record itself does not exist, as it is not
referenced in the 6.1 demo data. So it seems interesting enough to check
it out when convenient. Thanks for reporting!
--
You received this bug notification because you are a member of
OpenUpgrade Committers, which is subscribed to OpenUpgrade Server.
https://bugs.launchpad.net/bugs/1192094
Title:
Demo Data isn't loaded in openupgrade server while updating
Status in OpenUpgrade Server:
New
Bug description:
Hi,
I continue to work on script migration and I wanted to use demo data in 6.1 & 7.0 to see if all is operational after the migration.
(I don't know how the team members work to test script migration...)
So I have a problem when updating DB with demo data.
User case :
- Created DB in 6.1
-> with demo data.
-> without module installed.
updating this DB using openobject-upgrade :
I have a fatal error when updating my DB in v7.0
Extract of my log :
INFO v61_vierge_demo openerp.modules.loading: module base: loading res/res_partner_demo.yml
INFO v61_vierge_demo openerp.modules.loading: module base: loading res/res_partner_image_demo.xml
[...]
Parse error in ~/openobject-server_upgrade/openerp/addons/base/res/res_partner_image_demo.xml:17:
<record id="base.res_partner_address_5" model="res.partner">
<field name="image">iVB....</field>
</record>
[...]
IntegrityError: null value in column "name" violates not-null constraint
the #res_partner_address_5 is a new demo data of V7 and the creation
is defined in the res_partner_demo.yml, that is parsed before but
openUgrade don't create the res.partner "Chao Wang"
If I use openupgrade-server like a normal server and create a New DB
v7 with demo data, the res_partner_address_5 ("Chao Wang") exists in
the DB.
If it's a bug, i could be problematic. Not concerning demo data but
other data.
Thanks for your attention.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openupgrade-server/+bug/1192094/+subscriptions
References