Skip to content

[FIX] deltatech_sale_xls: fix import crash and skipped rows - #2835

Merged
dhongu merged 1 commit into
19.0from
fix-deltatech-sale-xls-import-bugs
Aug 20, 2026
Merged

[FIX] deltatech_sale_xls: fix import crash and skipped rows#2835
dhongu merged 1 commit into
19.0from
fix-deltatech-sale-xls-import-bugs

Conversation

@dhongu

@dhongu dhongu commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • sale.order.line.load() called fields.index.get(...)fields is a list, .index is a method, not a dict — raising AttributeError whenever the XLS import ran without default_order_id/active_id in context.
  • data.remove(record) was called while iterating over data, silently skipping the row right after any removed (unmatched) row.

Found while verifying 18.0 → 19.0 alignment for the Sanodor project.

Test plan

  • Manual: import an Excel line list on an existing sale order via the "Order lines" button, with an unmatched product in the middle of the list, and confirm no row is skipped.
  • Manual: import from an entry point without default_order_id/active_id in context and confirm no crash.

…rder.line.load

fields.index is a list method, not a dict, so calling .get on it raised
AttributeError whenever the import ran without default_order_id/active_id
in context. Also fix data.remove(record) while iterating over data, which
silently skipped the row right after a removed one.
@dhongu
dhongu merged commit 3c4d9f3 into 19.0 Aug 20, 2026
5 checks passed
@dhongu
dhongu deleted the fix-deltatech-sale-xls-import-bugs branch August 20, 2026 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant