blob: 76c6bdd37ee395edee6a663b1a293f09d90a52ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# -*- coding: utf-8 -*-
from odoo import api, models, _
class InsReportBalanceSheet(models.AbstractModel):
_name = 'report.dynamic_accounts_report.balance_sheet'
@api.model
def _get_report_values(self, docids, data=None):
if self.env.context.get('bs_report'):
if data.get('report_data'):
data.update({
'Filters': data.get('report_data')['filters'],
'account_data': data.get('report_data')['report_lines'],
'report_lines': data.get('report_data')['bs_lines'],
'report_name': data.get('report_name'),
'title': data.get('report_data')['name'],
'company': self.env.company,
})
return data
|