From d39b6a3562ee9d658b300bae7d008e60a578327d Mon Sep 17 00:00:00 2001 From: oco-odoo Date: Tue, 18 Nov 2025 16:56:03 +0100 Subject: [PATCH] [IMP] Accounting: Reports: Document the new cross_report syntax for forced date scope task-5243334 --- .../finance/accounting/reporting/customize.rst | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/content/applications/finance/accounting/reporting/customize.rst b/content/applications/finance/accounting/reporting/customize.rst index 094b624b8b..0043f982cd 100644 --- a/content/applications/finance/accounting/reporting/customize.rst +++ b/content/applications/finance/accounting/reporting/customize.rst @@ -169,8 +169,10 @@ by a period `.` and the expression's **label** (ex. **code.label**). `CUR` is the currency code in capital letters, and `amount` is the amount of the bound expressed in that currency. -`cross_report(xml_id | report_id)` - Used to match an expression from another report targeted by the xml_id or the report ID itself. +`cross_report(xml_id | report_id[, force_date_scope])` + Match an expression from another report targeted by the xml_id or the report ID itself. + If `force_date_scope` is added, the :guilabel:`Date Scope` defined on the expression will be + used to compute all the expressions used by the formula. Prefix of Account Codes computation engine ------------------------------------------ @@ -295,6 +297,13 @@ custom computation of expressions on a case-by-case basis. The :guilabel:`Formul **dictionary** returned by this function. Use this computation engine only if making a custom module. +Date filtering +============== + +By default, the values computed for each expression will restrict the move lines they consider +to the ones strictly within the interval selected on the report. To change that behavior, +modify the :guilabel:`Date Scope` field of the expression. + Columns =======