Skip to content

[ADD] stock_picking: Repeat fields on Picking Operations Report PDF#1314

Draft
ripil-odoo wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-picking-operation-report-ripil
Draft

[ADD] stock_picking: Repeat fields on Picking Operations Report PDF#1314
ripil-odoo wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-picking-operation-report-ripil

Conversation

@ripil-odoo
Copy link
Copy Markdown

@ripil-odoo ripil-odoo commented Jun 1, 2026

Purpose

The task requested that specific header fields remain visible on subsequent pages when a Picking Operations PDF report spans multiple pages. Currently, these details are only visible on the first page when the table extends to the next page.

Changes Made

  • Template Inheritance: Inherited the default template stock.report_picking.
  • Header Relocation: Moved the o_stock_report_header_row elements into a <tr> inside the table header (<thead>).
  • Page Persistence: Using standard wkhtmltopdf behavior, placing this data inside the <thead> forces the browser engine to repeat the header fields automatically on every new page break.

Technical Details

Model: stock.picking
Custom Template: report_stockpicking_operations_inherited

Why

  • wkhtmltopdf repeats any content wrapped inside a <thead> tag at the top of every new page when a table overflows. Moving the data here solves the client's request using standard HTML behavior without the need for complex custom logic.
  • Rather than rebuilding the layout this change targets the structure directly to ensure the data is present on page 2 and beyond.

Verification Steps

  1. Install Custom Picking Operation Report Header module from Apps.
  2. Go to Inventory -> Receipts.
  3. Select or create a picking record (stock.picking) with enough operations/lines to span across at least 2 pages.
  4. Click Print -> Picking Operations.
  5. Verify that the document fields repeat at the top of the second page exactly as they appear on the first page.

@robodoo
Copy link
Copy Markdown

robodoo commented Jun 1, 2026

Pull request status dashboard

@ripil-odoo ripil-odoo requested a review from mash-odoo June 1, 2026 12:50
Ensure original header fields are consistently visible across multiple pages of the Picking Operations PDF report when the table extends to a new page by using <thead> tags.
@ripil-odoo ripil-odoo force-pushed the 19.0-picking-operation-report-ripil branch from 3c7c961 to 965bb43 Compare June 1, 2026 13:06
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.

2 participants