addons14/account_financial_report/report/open_items_xlsx.py
def write_ending_balance_from_dict(
        self, my_object, type_object, total_amount, account_id=False, partner_id=False
    ):
        """Specific function to write ending balance for Open Items"""
        if type_object == "partner":
            name = my_object["name"]
            my_object["residual"] = total_amount[account_id][partner_id]["residual"]
            label = _("Partner ending balance")
        elif type_object == "account":
            name = my_object["code"] + " - " + my_object["name"]
            my_object["residual"] = total_amount[account_id]["residual"]
            label = _("Ending balance")
        super(OpenItemsXslx, self).write_ending_balance_from_dict(
            my_object, name, label
        )
Specific function to write ending balance for Open Items
Specific function to write ending balance for Open Items
Specific function to write ending balance for Open Items
def write_ending_balance_from_dict(
        self, my_object, type_object, total_amount, account_id=False, partner_id=False
    ):
        if type_object == "partner":
            name = my_object["name"]
            my_object["residual"] = total_amount[account_id][partner_id]["residual"]
            label = _("Partner ending balance")
        elif type_object == "account":
            name = my_object["code"] + " - " + my_object["name"]
            my_object["residual"] = total_amount[account_id]["residual"]
            label = _("Ending balance")
        super(OpenItemsXslx, self).write_ending_balance_from_dict(
            my_object, name, label
        )
def write_ending_balance_from_dict ( self , my_object , type_object , total_amount , account_id = False , partner_id = False ) : if type_object == "partner" : name = my_object [ "name" ] my_object [ "residual" ] = total_amount [ account_id ] [ partner_id ] [ "residual" ] label = _ ( "Partner ending balance" ) elif type_object == "account" : name = my_object [ "code" ] + " - " + my_object [ "name" ] my_object [ "residual" ] = total_amount [ account_id ] [ "residual" ] label = _ ( "Ending balance" ) super ( OpenItemsXslx , self ) . write_ending_balance_from_dict ( my_object , name , label )
Specific function to write ending balance for Open Items
Specific function to write ending balance for Open Items
"""Specific function to write ending balance for Open Items"""
self
my_object
type_object
total_amount
account_id
partner_id