Improve xml loading for override of records that don't exist
This commit is contained in:
1 parent
f9fe75f62d
commit
b88be55b18
1 file changed
+3
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user