Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion openerp/openupgrade/doc/source/xmlids.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion openerp/osv/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down