Skip to content

Commit 668c6cc

Browse files
committed
[IMP] Accounting: Reports: Document the new cross_report syntax for forced date scope
task-5243334 closes #15342 Related: odoo/odoo#236334 Related: odoo/enterprise#99816 Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
1 parent fc5a9a6 commit 668c6cc

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

content/applications/finance/accounting/reporting/customize.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,10 @@ by a period `.` and the expression's **label** (ex. **code.label**).
169169
`CUR` is the currency code in capital letters, and `amount` is the amount of the bound expressed in
170170
that currency.
171171

172-
`cross_report(xml_id | report_id)`
173-
Used to match an expression from another report targeted by the xml_id or the report ID itself.
172+
`cross_report(xml_id | report_id[, force_date_scope])`
173+
Match an expression from another report targeted by the xml_id or the report ID itself.
174+
If `force_date_scope` is added, the :guilabel:`Date Scope` defined on the expression will be
175+
used to compute all the expressions used by the formula.
174176

175177
Prefix of Account Codes computation engine
176178
------------------------------------------
@@ -295,6 +297,13 @@ custom computation of expressions on a case-by-case basis. The :guilabel:`Formul
295297
**dictionary** returned by this function. Use this computation engine only if making a custom
296298
module.
297299

300+
Date filtering
301+
==============
302+
303+
By default, the values computed for each expression will restrict the move lines they consider
304+
to the ones strictly within the interval selected on the report. To change that behavior,
305+
modify the :guilabel:`Date Scope` field of the expression.
306+
298307
Columns
299308
=======
300309

0 commit comments

Comments
 (0)