Tuesday, August 25, 2026
1 change · master
Resolved issues and error corrections
This fixes an issue where Chilean invoice and document numbering could restart from the first number instead of continuing the correct sequence. The correction helps prevent duplicate or incorrect numbering for companies using the Chilean localization.
Original PR description
The recent changes in #282652 rewrote _get_last_sequence_domain to return a SQL object instead of tuple. This turned named params into positional ones. In `l10n_cl` the parameters' orders were kept the same calling so company_id and l10n_latam_document_type_id ended up swapped against the placeholders they filled. This leads to every Chilean numbering query matching nothing and always falling back to first number. task-none