You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
944 B

# © 2016 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, models
class ReportFinancial(models.AbstractModel):
_inherit = 'report.account.report_financial'
def get_account_lines(self, data, side=None):
return super(
ReportFinancial, self.with_context(
account_financial_report_horizontal_side=side,
)
).get_account_lines(data)
def get_left_lines(self, data):
return self.get_account_lines(data, side='left')
def get_right_lines(self, data):
return self.get_account_lines(data, side='right')
@api.multi
def get_report_values(self, docids, data):
data.setdefault('form', {}).update(
get_left_lines=self.get_left_lines,
get_right_lines=self.get_right_lines,
)
return super(ReportFinancial, self).get_report_values(docids, data)