Fork Sync Branch 18.0 - #62
Merged
Merged
Conversation
…print When a preprinted stock voucher (aeroo remito) is printed through an IoT printer, the voucher numbers were never assigned to the picking. The assignment lives in stock_voucher_ux's /report/download controller, but the IoT print path (iot's render_and_send) bypasses that controller entirely. This bridge module (depends on stock_voucher_ux + iot, auto_install) overrides render_and_send to assign the numbers before rendering, so the document sent to the printer already carries them, mirroring the download flow. Assignment is idempotent and scoped to preprinted books (autoprinted=False). closes #979 Signed-off-by: Juan Carreras <jc@adhoc.com.ar>
…s set Print the delivery voucher automatically on validation only when the operation type has `auto_print_delivery_slip` enabled (the native v18 flag), reusing the existing methods without re-numbering: - autoprinted books: already numbered in _action_done, only print; - pre-printed books: numbered on print by real page count (assign=True), same path as the "Print Voucher" button. Operation types without the flag are only validated (no auto-print), so this does not change the behavior of types that don't opt in. The backorder confirmation wizard is routed through core process(), which re-runs button_validate() on the pickings in v18, so it reuses the same print/number path above. This skips stock_voucher's wizard override, which reprinted with do_print_voucher() without assign (leaving pre-printed books unnumbered) and returned a tuple the web client never executes. closes #975 Signed-off-by: Luciano Esperlazza <les@adhoc.inc>
sireko
approved these changes
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.