Skip to content

[ADD] purchase_line_sale_history: Sales history on purchase order lines - #25

Merged
alan196 merged 1 commit into
Jarsa:19.0from
Jarsa-dev:19.0-task-31940
Jul 16, 2026
Merged

alan196 merged 1 commit into
Jarsa:19.0from
Jarsa-dev:19.0-task-31940

Conversation

@alan196

@alan196 alan196 commented Jul 16, 2026

Copy link
Copy Markdown

Add a Sales History toggle on purchase order lines that displays, below the order lines, a year x month pivot table with the quantities of the line's product sold in posted customer invoices (credit notes subtracted). Only one line per order can be active at a time (enforced live in the form via onchange and at API level via create/write), the history is computed on the exact product variant, and the number of past years shown is configurable in the purchase settings (default: 2).

@jarsabot

Copy link
Copy Markdown
    **WARNING**: Could not link to Odoo task. Record ID not found in the title of the MR, supported formats:
{ record type }#{ number }

Available types: 'task#', 't#' (case insensitive)

Examples:

  • task#123

  • i#123

Add a Sales History toggle on purchase order lines that displays, below
the order lines, a year x month pivot table with the quantities of the
line's product sold in posted customer invoices (credit notes subtracted).
Only one line per order can be active at a time (enforced live in the
form via onchange and at API level via create/write), the history is
computed on the exact product variant, and the number of past years shown
is configurable in the purchase settings (default: 2).
@jarsabot

Copy link
Copy Markdown
    **WARNING**: Could not link to Odoo task. Record ID not found in the title of the MR, supported formats:
{ record type }#{ number }

Available types: 'task#', 't#' (case insensitive)

Examples:

  • task#123

  • i#123

@alan196
alan196 merged commit 4024dc7 into Jarsa:19.0 Jul 16, 2026
2 of 4 checks passed
@jarsabot

Copy link
Copy Markdown
    **WARNING**: Could not link to Odoo task. Record ID not found in the title of the MR, supported formats:
{ record type }#{ number }

Available types: 'task#', 't#' (case insensitive)

Examples:

  • task#123

  • i#123

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