Skip to content

Commit

Permalink
Merge pull request #131 from akretion/14.0-fix_native_import
Browse files Browse the repository at this point in the history
[14.0][FIX] pattern_import_export: fix odoo native import
  • Loading branch information
sebastienbeau authored Nov 24, 2024
2 parents 2d19948 + 2a0d4f3 commit c4ea0c0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pattern_import_export/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,10 @@ def _convert_records(self, records, log=lambda a: None):
for dbid, xid, record, info in super()._convert_records(records, log=log):
# Note the log method is equal to messages.append
# so log.__self__ return the messages list
messages = log.__self__
if messages and messages[-1]["rows"] == info["rows"]:
# we have a message for this item so we skip it from conversion
# so the record will be not imported
continue
else:
yield dbid, xid, record, info
if self._context.get("pattern_config"):
messages = log.__self__
if messages and messages[-1]["rows"] == info["rows"]:
# we have a message for this item so we skip it from conversion
# so the record will be not imported
continue
yield dbid, xid, record, info

0 comments on commit c4ea0c0

Please sign in to comment.