Stock Account Prepare Anglo Saxon Oout Lines Hook
Modify when and how anglo saxon journal items are created
auto_awesome What this module does
AI-generated from the code · Odoo 14.0Changes how Anglo-Saxon cost of goods sold journal entries are generated on customer invoices and refunds, adding separate interim stock and expense lines for real-time valued products.
This module adjusts the automatic accounting entries that Odoo creates for customer invoices and credit notes when Anglo-Saxon accounting is enabled. It replaces the standard logic that builds the cost-of-goods-sold lines with a new version that creates two journal items per eligible invoice line: one on the stock output (interim) account and one on the expense account.
- It only applies to sales documents (invoices and refunds) for companies that have Anglo-Saxon accounting turned on.
- It only considers invoice lines whose product is a storable product with real-time valuation.
- For each such line, it computes the price unit from the product's stock valuation and skips the line if the amount or price unit is zero.
- The interim line is posted to the stock output account; the expense line is posted to the product's expense account or, if missing, the journal's default account.
- The expense line also carries the analytic account and analytic tags from the original invoice line.
- Credit notes reverse the sign of the amounts.
The module touches account.move and account.move.line and works together with the stock_account module. It does not add menus or screens; it changes the journal items generated behind the scenes when invoices are posted.
Depends on
Models and fields (1)
- account.move · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 14.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-03Confirmation status: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/account-financial-tools.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.