Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][FIX] pattern_import_export: fix odoo native import #131

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from
Open
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
14 changes: 7 additions & 7 deletions pattern_import_export/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,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
Loading