addons14/account_financial_report/report/abstract_report_xlsx.py
def _get_currency_amt_format(self, line_object):
        """ Return amount format specific for each currency. """
        if "account_group_id" in line_object and line_object["account_group_id"]:
            format_amt = self.format_amount_bold
            field_prefix = "format_amount_bold"
        else:
            format_amt = self.format_amount
            field_prefix = "format_amount"
        if "currency_id" in line_object and line_object.get("currency_id", False):
            field_name = "{}_{}".format(field_prefix, line_object["currency_id"].name)
            if hasattr(self, field_name):
                format_amt = getattr(self, field_name)
            else:
                format_amt = self.workbook.add_format()
                self.field_name = format_amt
                format_amount = "#,##0." + (
                    "0" * line_object["currency_id"].decimal_places
                )
                format_amt.set_num_format(format_amount)
        return format_amt
 Return amount format specific for each currency. 
Return amount format specific for each currency.
Return amount format specific for each currency .
def _get_currency_amt_format(self, line_object):
        if "account_group_id" in line_object and line_object["account_group_id"]:
            format_amt = self.format_amount_bold
            field_prefix = "format_amount_bold"
        else:
            format_amt = self.format_amount
            field_prefix = "format_amount"
        if "currency_id" in line_object and line_object.get("currency_id", False):
            field_name = "{}_{}".format(field_prefix, line_object["currency_id"].name)
            if hasattr(self, field_name):
                format_amt = getattr(self, field_name)
            else:
                format_amt = self.workbook.add_format()
                self.field_name = format_amt
                format_amount = "#,##0." + (
                    "0" * line_object["currency_id"].decimal_places
                )
                format_amt.set_num_format(format_amount)
        return format_amt
def _get_currency_amt_format ( self , line_object ) : if "account_group_id" in line_object and line_object [ "account_group_id" ] : format_amt = self . format_amount_bold field_prefix = "format_amount_bold" else : format_amt = self . format_amount field_prefix = "format_amount" if "currency_id" in line_object and line_object . get ( "currency_id" , False ) : field_name = "{}_{}" . format ( field_prefix , line_object [ "currency_id" ] . name ) if hasattr ( self , field_name ) : format_amt = getattr ( self , field_name ) else : format_amt = self . workbook . add_format ( ) self . field_name = format_amt format_amount = "#,##0." + ( "0" * line_object [ "currency_id" ] . decimal_places ) format_amt . set_num_format ( format_amount ) return format_amt
Return amount format specific for each currency.
Return amount format specific for each currency .
""" Return amount format specific for each currency. """
self
line_object