Improve xml loading for override of records that don't exist

This commit is contained in:
Cédric Krier committed 2009-04-12 18:31:41 +02:00
1 parent f9fe75f62d
commit b88be55b18
1 file changed
+3
+3
View File
@@ -544,6 +544,9 @@ class TrytondXmlHandler(sax.handler.ContentHandler):
'as in module.reference_id' % (fs_id)
module, fs_id = fs_id.split('.')
if not self.fs2db.get(module, fs_id):
raise Exception('Reference to %s.%s not found' % \
(module, fs_id))
object_ref = self.pool.get(model)