Skip to content
Snippets Groups Projects
Commit 238bf0e5 authored by oco-odoo's avatar oco-odoo
Browse files

[FIX] account: use column group options to audit carryover lines


In enterprise, when doing a comparison between multiple periods with values carried over to them, auditing the carryover values (through the dedicated button in the popup, in debug mode) always opened the latest period.

This was due to the fact the main options of the report were directly used, instead of the ones corresponding to the column group owning the value.

closes odoo/odoo#135658

Related: odoo/enterprise#47476
Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
parent f693d9b5
Branches
Tags
No related merge requests found
......@@ -690,7 +690,10 @@ class AccountReportExpression(models.Model):
return auto_chosen_target
def action_view_carryover_lines(self, options):
def action_view_carryover_lines(self, options, column_group_key=None):
if column_group_key:
options = self.report_line_id.report_id._get_column_group_options(options, column_group_key)
date_from, date_to, dummy = self.report_line_id.report_id._get_date_bounds_info(options, self.date_scope)
return {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment