cannot migrate database with testdata (6.1 to 7)

Asked by ONESTEiN

I get the following error,

apart from res.user errors,
I get stuck at a query in res.partner , see the end of the log file. It tries to create a row with a Null value in a required column. I guess migrating test databases (OERP testdata) should just work.....

014-03-14 11:27:52,044 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading security/base_security.xml
2014-03-14 11:27:52,139 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:52,141 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:52,143 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:52,191 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading base_menu.xml
2014-03-14 11:27:52,518 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_security.xml
2014-03-14 11:27:52,530 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_config.xml
2014-03-14 11:27:52,558 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading data/res.country.state.csv
2014-03-14 11:27:52,809 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/wizard/wizard_menu_view.xml
2014-03-14 11:27:52,828 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/ir_actions.xml
2014-03-14 11:27:53,205 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/ir_attachment_view.xml
2014-03-14 11:27:53,256 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/ir_config_parameter_view.xml
2014-03-14 11:27:53,340 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/ir_cron_view.xml
2014-03-14 11:27:53,496 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/ir_filters.xml
2014-03-14 11:27:53,604 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/ir_mail_server_view.xml
2014-03-14 11:27:53,690 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/ir_model_view.xml
2014-03-14 11:27:54,061 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/ir_rule_view.xml
2014-03-14 11:27:54,148 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/ir_sequence_view.xml
2014-03-14 11:27:54,418 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/ir_translation_view.xml
2014-03-14 11:27:54,549 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/ir_ui_menu_view.xml
2014-03-14 11:27:54,663 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/ir_ui_view_view.xml
2014-03-14 11:27:54,868 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/ir_values_view.xml
2014-03-14 11:27:55,076 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/osv_memory_autovacuum.xml
2014-03-14 11:27:55,096 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/report/ir_report.xml
2014-03-14 11:27:55,138 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading ir/workflow/workflow_view.xml
2014-03-14 11:27:55,845 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading module/module_view.xml
2014-03-14 11:27:56,108 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading module/module_data.xml
2014-03-14 11:27:56,296 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,298 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,300 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,392 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,394 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,396 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,490 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,492 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,495 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,586 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,588 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,590 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,684 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,686 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,689 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,784 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,787 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,789 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,883 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,886 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,888 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,984 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,986 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:56,988 14965 ERROR A03_14_testdata_db openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-14 11:27:57,003 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading module/module_report.xml
2014-03-14 11:27:57,039 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading module/wizard/base_module_import_view.xml
2014-03-14 11:27:57,085 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading module/wizard/base_module_update_view.xml
2014-03-14 11:27:57,150 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading module/wizard/base_language_install_view.xml
2014-03-14 11:27:57,188 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading module/wizard/base_import_language_view.xml
2014-03-14 11:27:57,248 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading module/wizard/base_module_upgrade_view.xml
2014-03-14 11:27:57,364 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading module/wizard/base_module_configuration_view.xml
2014-03-14 11:27:57,396 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading module/wizard/base_export_language_view.xml
2014-03-14 11:27:57,485 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading module/wizard/base_update_translations_view.xml
2014-03-14 11:27:57,567 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading module/wizard/base_module_immediate_install.xml
2014-03-14 11:27:57,602 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_company_view.xml
2014-03-14 11:27:58,025 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_request_view.xml
2014-03-14 11:27:58,155 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_lang_view.xml
2014-03-14 11:27:58,292 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_partner_report.xml
2014-03-14 11:27:58,333 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_partner_view.xml
2014-03-14 11:27:58,577 14965 WARNING A03_14_testdata_db openerp.addons.base.ir.ir_ui_view: Can't render view base.view_partner_form for model: res.partner. If you are migrating between major versions of OpenERP, this is to be expected (otherwise, do not run OpenUpgrade server).
2014-03-14 11:27:58,863 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_partner_shortcut_data.xml
2014-03-14 11:27:58,870 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_bank_view.xml
2014-03-14 11:27:59,250 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_country_view.xml
2014-03-14 11:27:59,494 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_currency_view.xml
2014-03-14 11:27:59,672 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/wizard/change_password_wizard_view.xml
2014-03-14 11:27:59,719 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_users_view.xml
2014-03-14 11:28:00,243 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_partner_data.xml
2014-03-14 11:28:00,319 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/ir_property_view.xml
2014-03-14 11:28:00,533 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading security/base_security.xml
2014-03-14 11:28:00,571 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading security/ir.model.access.csv
2014-03-14 11:28:01,977 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading base_demo.xml
2014-03-14 11:28:02,045 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_partner_demo.xml
2014-03-14 11:28:03,043 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_partner_demo.yml
2014-03-14 11:28:03,167 14965 INFO A03_14_testdata_db openerp.modules.loading: module base: loading res/res_partner_image_demo.xml
2014-03-14 11:28:03,222 14965 ERROR A03_14_testdata_db openerp.sql_db: bad query: insert into "res_partner" (id,"lang","customer","tz","color","image","company_id","use_parent_address","supplier","employee","active","type","is_company",create_uid,create_date,write_uid,write_date) values (65,'en_US','True',NULL,0,'\x6956424f5277304b47676f414141414e5355684555674141414659414141434143415941414143524d5a37464141416741456c4551565234587057394235686b5a334875587a335463584c61325a787a31456246565934674353514549706767454d6e47786c646b673046674844454f3177594d686775327565626943385932594275546853516b4a4b3343537276614f4c737a75354e7a37756b4a665839766e66504e746762682f2f4e7650614f64365844366e5072717133727272584153762f384f7a425264694f466d746442436942426c4f4b447758466b627630794f632b454a4e44414b636d5a7961502f5a436f59594c6672486e772f476d4f623858577a4139703857646d346d55594e356d6c746a71734d7357666b2f34724a3550785362766c375a36764b427a73536b49357a6a2f766a76656646396b593756714a5676494e5156427a78577873644d7a4c73424d4d6d5735696f776c4f5a69656d357161744c6e736332724d416b72743232332b6d55726254615a3570787a306b735830487851494a764a393469397736624e793355683374554c364f753838394c697a78566e334554e2374533622f6335346745333633784c5559452b6f384a7050594b354b6b5549775a6b464f43716c444e7843346e4a79586d653565586954422b714b715630766171306a4c715a775141455355614d43326d6859613645653958314f5a505a6f445277663035494c694d5a474678334e304849744a566f4c654c4a4977556249526b516b4437316e59702f695247476f557064674e55784e384576366f5346764551794c78716347652b31656e2b2b52456f784363477561737073417a62754a692b5a6b592f38663037504d754d6a6a43774d41414141415355564f524b35435949493d'::bytea,1,'False','False','False','True','contact','False',1,(now() at time zone 'UTC'),1,(now() at time zone 'UTC'))
Traceback (most recent call last):
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/sql_db.py", line 226, in execute
    res = self._obj.execute(query, params)
IntegrityError: null value in column "name" violates not-null constraint

2014-03-14 11:28:03,230 14965 ERROR A03_14_testdata_db openerp.tools.convert: Parse error in /home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/addons/base/res/res_partner_image_demo.xml:17:
<record id="base.res_partner_address_5" model="res.partner">
            <field name="image">iVBORw0KGgoAAAANSUhEUgAAAFYAAACACAYAAACRMZ7FAAAgAElEQVR4XpW9B5hkZ3HuXz3TcXLa2Zxz1EbFVY4gCSQEIpggEMnGxldkg0FgHDEO1wYMhgu2uebiC8Y2YBuThSQkJK3CSrvaOLszu5Nz7ukJfX9vnfPNtgbh//NvPaOd6XD6nPrqq3rrrXASv/3u9xUTiYRZWcL0L3/Y3Nyc5QtTls/nbWR01mZmZmxupsBb5iyTSVk2nbRyfYa/p+dSVl5e7p/V54rFooWH/i6LXysrK/P3+HeVPObKo7/Da7/8b7m/ruOW/oTnysqyNjsbneP09LT/6HvDcZJJzpVzSKVSlk6nOf+M/6u/dU6p8uT89+sXfVbH079+PYmy+e8vPY9wCTNzF66n9NoT7/6t9xb1BRKsHzi+CJ3g1HTBxkan/YtmZ2cM0XGSCUsnJaTo0Ml05QsEWyokfdGshBsL1b+n5OGCir83CLxUsHprWVl04eGiFv5etHIXgARbKBTmBRvOIzpG2QuEK6EGwWZS6V9a1LCAfn0sTOljoWKkyqKFLz1///v1r3+rCzZonBYg/C6BcloXVs+1Rs+FxxyrX+EnrkfQ2KDB4cQWCqtUOAuFvfDEF75eehEubDQuaJeE67urRGMTc8V5welYQYN1jn5sXg/HLN1VC3fXr1r4ZLEw//kX7LZXv/Zt84KdLUZbOVyMfpeWlq6gNFB/l257NyHSzngL6fOlixVOvFRoYdukFmjEC9RDgotNS+lnXyD8eOuEc9R5lQrK4q1aeg2lApBZ8AXStcam6gWvl18Q/EIFN/R4HBumYDtTbJdhqYNg05yuHm0uDv+VAWMC1O3ba9n37bRyHLMFqsfzhHl7OKArjZ4ovxLlB+EHavHqBKuUapUB5dmbiTX/yBYdbpavl5iCQLYVJx5ZTbM8MX14xV2aFMZwZFzuJNk9wwtIils7KEGpWIS+CFWzyrcJnR0EV4nAzCGC4swPIlrNnH37Yes6ds9ryWVAA/3fb9iAUttsL1w1o51oRde0RFXZkGlIYncU6ciu+a2l45Ie3aw32N8QAQWsGAkp0sR16zR8vd5v+KvFefyxJxwFyMZGFx3N0HItJVoLeLJIwUbIRkQkD71nYp/iRGGoUpdgNUxN8Ev6oSFvEQyLxqcGe+1en++REoxCcGuaspsAzbuJi+ZkY/8f07PMuMjjCwMAAAAASUVORK5CYII=</field>
        </record>
Traceback (most recent call last):
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/tools/convert.py", line 850, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/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 "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/addons/base/ir/ir_model.py", line 981, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/addons/base/res/res_partner.py", line 497, in create
    new_id = super(res_partner, self).create(cr, uid, vals, context=context)
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/osv/orm.py", line 4455, in create
    cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/sql_db.py", line 161, in wrapper
    return f(self, *args, **kwargs)
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/sql_db.py", line 226, in execute
    res = self._obj.execute(query, params)
IntegrityError: null value in column "name" violates not-null constraint

2014-03-14 11:28:03,263 14965 ERROR A03_14_testdata_db openerp: Failed to initialize database `A03_14_testdata_db`.
Traceback (most recent call last):
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/cli/server.py", line 98, in preload_registry
    db, registry = openerp.pooler.get_db_and_pool(dbname,update_module=update_module)
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/pooler.py", line 33, in get_db_and_pool
    registry = RegistryManager.get(db_name, force_demo, status, update_module)
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/modules/registry.py", line 192, in get
    update_module)
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/modules/registry.py", line 218, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/modules/loading.py", line 331, in load_modules
    loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=update_module, report=report, registry=registry)
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/modules/loading.py", line 213, in load_module_graph
    load_demo(module_name, idref, mode)
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/modules/loading.py", line 78, in <lambda>
    load_demo = lambda *args: _load_data(cr, *args, kind='demo')
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/modules/loading.py", line 128, in _load_data
    tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/tools/convert.py", line 957, in convert_xml_import
    obj.parse(doc.getroot())
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/tools/convert.py", line 850, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/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 "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/addons/base/ir/ir_model.py", line 981, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/addons/base/res/res_partner.py", line 497, in create
    new_id = super(res_partner, self).create(cr, uid, vals, context=context)
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/osv/orm.py", line 4455, in create
    cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/sql_db.py", line 161, in wrapper
    return f(self, *args, **kwargs)
  File "/home/jeroen/workspace/OU/source/code/openupgrade-server/openerp/sql_db.py", line 226, in execute
    res = self._obj.execute(query, params)
IntegrityError: null value in column "name" violates not-null constraint

Question information

Language:
English Edit question
Status:
Solved
For:
OpenUpgrade Server Edit question
Assignee:
No assignee Edit question
Solved by:
ONESTEiN
Solved:
Last query:
Last reply:
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) said :
#1

If you are trying to migrate a 6.1 database with 6.1 demo data to a 7.0 database with 7.0 demo data, that will never work. It would be nice if we could migrate a 6.1 database with 6.1 demo data to 7.0 keeping the 6.1 demo data. OpenUpgrade tries to reset the demo flag but I haven't really tested this lately. Apparently it does not work.

Revision history for this message
ONESTEiN (info-lq) said :
#2

OK, I will make a test datbase my self then!

Revision history for this message
Schneider Bern (mia-2ngola) said :
#3

Hi Stefan,

Can you share here what is the command line to run upgrade please.

I see this command but I don't know how to replace:

your openerp.conf
your database

python migrate.py --config=[your openerp.conf] --database=[your database] --run-migrations=[your migrations]

Sincerly.
Vitasoa

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) said :
#4

Hi Vitasoa,

please start a new thread.

Thank you