OdooWiki OCA HUB

Account Cut-off Accrual Sale Stock

account_cutoff_accrual_sale_stock folder_open OCA/account-closing open_in_new
Accounting & Finance License: AGPL-3

This module extends the functionality of account_cutoff_accrual_sale to allow the computation of revenue cutoffs on sales orders for storable products.

This glue module allows to detect the quantities delivered after the cutoff date.

See account_cutoff_accrual_sale for more explanations.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds stock-aware revenue cut-off accruals for sales orders: it detects quantities of storable products delivered after the cut-off date so the accrual entry reflects only what was really delivered before it.

This is a glue module that connects sales cut-off accruals with stock deliveries. It installs automatically when the sales cut-off accrual, the order/stock cut-off base and the sale-stock modules are all present, so users do not need a new menu: the change appears inside the existing cut-off accrual screens for sales.

On each sales order line it adds the logic needed to know what was delivered before and after the cut-off date:

  • It finds the first real delivery date of the line, looking at completed outgoing stock moves (or incoming moves for negative quantities), converted to the company time zone.
  • It ignores moves that were fully returned within the same month, so a delivery that came back is not counted.
  • It computes the delivered stock quantity as of the cut-off: deliveries completed on or after the day following the cut-off are removed, and returns received after that date are added back.
  • Lines created after the cut-off date count as zero delivered.
  • It also collects the sales order lines whose stock moves were completed after the cut-off, so they are included in the accrual computation.

These rules only apply to lines whose delivered quantity is based on stock moves; other lines fall back to the standard behaviour. The module touches sale.order.line and relies on stock moves, and it feeds the existing cut-off accrual computation rather than adding new buttons or reports.

Models and fields (1)
  • sale.order.line · new model

Text generated by AI (DeepSeek) from reading the Odoo 16.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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/account-closing.

terminal Installation and usage

No verified information

Installation 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.

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.