diff --git a/openerp/openupgrade/doc/source/xmlids.rst b/openerp/openupgrade/doc/source/xmlids.rst index 13a0f06cb3ff..cf3a80ab4cec 100644 --- a/openerp/openupgrade/doc/source/xmlids.rst +++ b/openerp/openupgrade/doc/source/xmlids.rst @@ -54,7 +54,10 @@ More interesting are * Any general data added by the module. Typically, data is loaded one time only using the 'noupdate' flag in the XML. You cannot simply force-load such data in your upgrade script, or you will for instance reset the - sequences used for invoice numbering. Revise any data carefully and + sequences used for invoice numbering. + You can use this script + 'OpenUpgrade/scripts/compare_noupdate_xml_records.py' + Revise any data carefully and copy relevant, new data in a separate file. Load it from your post script using :meth:`~openupgrade.load_xml` from the module :mod:`openupgrade` which is included with the OpenUpgrade Server package. You may also have diff --git a/openerp/osv/orm.py b/openerp/osv/orm.py index 7c953a512f8f..ebe9408bd97d 100644 --- a/openerp/osv/orm.py +++ b/openerp/osv/orm.py @@ -1575,7 +1575,9 @@ def _validate(self, cr, uid, ids, context=None): _("The field(s) `%s` failed against a constraint: %s") % (', '.join(fields), translated_msg) ) if error_msgs: - raise except_orm('ValidateError', '\n'.join(error_msgs)) + # OpenUpgrade: do not raise for obsolete fields + # raise except_orm('ValidateError', '\n'.join(error_msgs)) + pass def default_get(self, cr, uid, fields_list, context=None): """