Skip to content

[19.0][MIG] account_move_line_repair_info - #2382

Open
JasminSForgeFlow wants to merge 13 commits into
OCA:19.0from
ForgeFlow:19.0-mig-account_move_line_repair_info
Open

[19.0][MIG] account_move_line_repair_info#2382
JasminSForgeFlow wants to merge 13 commits into
OCA:19.0from
ForgeFlow:19.0-mig-account_move_line_repair_info

Conversation

@JasminSForgeFlow

@JasminSForgeFlow JasminSForgeFlow commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Odoo 19.0 API changes

  • stock.valuation.layer was removed in 19.0. Stock valuation now lives directly on
    stock.move (value, account_move_id), so the _validate_accounting_entries() override is
    gone. The repair order is now stamped on the journal items at creation time, by overriding
    stock.move._get_account_move_line_vals(). Since that method is called per stock move, each
    journal item gets exactly the repair order of the move it comes from — in 19.0 a single
    valuation entry can gather several stock moves, which the old "write on move.line_ids"
    approach could not express.
  • post_init_hook: the SQL no longer joins stock_valuation_layer; it goes through
    stock_move.account_move_id. The two former queries (materials consumed / product repaired)
    collapse into one, because in 19.0 the repaired-product move created by action_repair_done
    also carries repair_id. Entries gathering more than one repair order — or mixing repair and
    non-repair moves — are skipped rather than mis-assigned.

@ForgeFlow

@OCA-git-bot OCA-git-bot added series:19.0 mod:account_move_line_repair_info Module account_move_line_repair_info labels Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:account_move_line_repair_info Module account_move_line_repair_info series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants