Skip to content

Fork Sync Branch 18.0 - #62

Merged
btl-bot merged 2 commits into
BTLzdravtech:18.0from
ingadhoc:18.0
Jul 30, 2026
Merged

Fork Sync Branch 18.0#62
btl-bot merged 2 commits into
BTLzdravtech:18.0from
ingadhoc:18.0

Conversation

@btl-bot

@btl-bot btl-bot commented Jul 30, 2026

Copy link
Copy Markdown

No description provided.

…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 sireko left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved

@btl-bot
btl-bot merged commit d41a78c into BTLzdravtech:18.0 Jul 30, 2026
1 check passed
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.

3 participants