OdooWiki OCA HUB

Stock landed costs purchase auto

stock_landed_costs_purchase_auto folder_open OCA/stock-logistics-workflow open_in_new
Inventory License: AGPL-3

This addon will auto-create a stock landed cost linked to the purchase order when it is confirmed.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Automatically creates a landed cost record linked to a purchase order when the order is confirmed and its receipt is created, so extra costs like freight or customs can be allocated to the received products.

When a purchase order is confirmed and its receipt (transfer) is generated, this module automatically creates a landed cost document and links it to that purchase order. The same happens when a receipt is created or updated from a purchase order line, and when a backorder is created from a receipt that already has landed costs.

On the purchase order form, a smart button labelled "Landed Costs" appears in the button box (visible only to Inventory managers and only when at least one landed cost exists). Clicking it opens the list of landed costs filtered to that purchase order.

On the landed cost screen and its search filters, a new "Purchase" field is added, so users can see or search which purchase order a landed cost belongs to.

A safety check prevents creation if no default journal is configured for landed costs; in that case an error message tells the user to set it in Inventory settings.

The module touches purchase.order, purchase.order.line, stock.landed.cost and stock.picking. It does not change how landed costs are valued or posted; it only automates their creation and linking to purchases.

Depends on

stock_landed_costspurchase_stock

Required by other modules

Models and fields (4)
  • stock.picking · extends an existing model
  • purchase.order · extends an existing modellanded_cost_ids (Landed Costs), landed_cost_number
  • stock.landed.cost · extends an existing modelpurchase_id (Purchase)
  • purchase.order.line · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 6 confirmed, 3 with no information of 9 versions.

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/stock-logistics-workflow.

terminal Installation and usage

OCA documentation · Odoo 19.0
  • Go to Purchase\> Orders \> Requests for Quotation.
  • Create an order with any product.
  • Confirm Order.
  • Go to "Receipt" smart-button.
  • Validate picking.
  • Go to Inventory \> Operations \> Landed Costs.
  • There will be a record related to the purchase order and the validated picking.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.