Skip to content

[16.0][ADD] stock_move_line_devaluation#2276

Open
marcos-mendez wants to merge 8 commits intoOCA:16.0from
popsolutions:16.0-add-stock_move_line_devaluation
Open

[16.0][ADD] stock_move_line_devaluation#2276
marcos-mendez wants to merge 8 commits intoOCA:16.0from
popsolutions:16.0-add-stock_move_line_devaluation

Conversation

@marcos-mendez
Copy link
Copy Markdown

New Feature

Description

This module adds a Stock Withdrawal Valuation report under Inventory > Reporting.

A wizard allows the user to:

  • Select a customer (optional) — the customer's default pricelist is loaded automatically
  • Choose or override the pricelist for price calculations
  • Define a date range to filter stock withdrawals

The report:

  • Shows only outgoing (customer delivery) stock move lines in "done" state
  • Automatically excludes fully returned deliveries and adjusts quantities for partial returns (net quantity)
  • Calculates the unit price from the selected pricelist and the total value per line
  • Groups results by analytic account with subtotals
  • Includes a PDF report grouped by analytic account with subtotals and grand total
  • Supports tree, pivot views with grouping by customer, product, responsible, analytic account, date, and transfer

Use case

In manufacturing and service companies that deliver materials to customers from stock (e.g. shipyard delivering consumables to a vessel owner), this report answers: "How much does the customer owe us based on stock withdrawals, at pricelist prices?"

Screenshots

Related modules

  • stock_move_line_picking_partner (same repo) — similar pattern for picking partner on move lines
  • stock_analytic (OCA/account-analytic) — optional, for analytic distribution on stock moves

@marcos-mendez
Copy link
Copy Markdown
Author

@pedrobaeza @jbaudoux @rousseldenis @sergio-teruel Could you please review this module and if it is important for OCA this type of work approve the PR? Thanks

@pedrobaeza pedrobaeza added this to the 16.0 milestone Mar 11, 2026
@pedrobaeza pedrobaeza changed the title [16.0][ADD] add stock move line devaluation report [16.0][ADD] stock_move_line_devaluation Mar 11, 2026
@pedrobaeza
Copy link
Copy Markdown
Member

Sorry, but I don't know about the specific topic to say. You may want though to review other related PRs and ask in exchange that they review yours.

About the sentence "it is important for OCA this type of work", we are all OCA. Any contribution is appreciated, but the PR is just the first step. You can also get some traction collaborating in the ecosystem.

@marcos-mendez marcos-mendez force-pushed the 16.0-add-stock_move_line_devaluation branch 2 times, most recently from d447fb1 to 02a81b9 Compare March 11, 2026 21:04
@marcos-mendez marcos-mendez force-pushed the 16.0-add-stock_move_line_devaluation branch from 02a81b9 to 9e775d6 Compare March 11, 2026 21:17
@marcos-mendez
Copy link
Copy Markdown
Author

\o/

@marcos-mendez
Copy link
Copy Markdown
Author

Automated Review -- Tests Passed

All tests for stock_move_line_devaluation,stock_move_line_picking_partner passed successfully on Odoo 16.0.
Environment: Minikube + K8s Job + oca-ci/py3.10-odoo16.0


Reciprocal Review Request

Hi everyone! Thanks for your contribution to OCA. I reviewed and approved this PR. If any of you have a moment, I would really appreciate a review on my open PR(s):

Same repo (OCA/stock-logistics-workflow):

Other OCA repos:

Reviewing each other's work helps the whole community move forward faster. Thank you!


Automated review by OCA Neural Reviewer + qwen3-coder:30b

This was referenced Mar 16, 2026
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