addons14/account_financial_report/report/abstract_report_xlsx.py
def _get_currency_amt_header_format_dict(self, line_object):
        """ Return amount header format for each currency. """
        format_amt = self.format_header_amount
        if line_object["currency_id"]:
            field_name = "format_header_amount_%s" % line_object["currency_name"]
            if hasattr(self, field_name):
                format_amt = getattr(self, field_name)
            else:
                format_amt = self.workbook.add_format(
                    {"bold": True, "border": True, "bg_color": "#FFFFCC"}
                )
                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 header format for each currency. 
Return amount header format for each currency.
Return amount header format for each currency .
def _get_currency_amt_header_format_dict(self, line_object):
        format_amt = self.format_header_amount
        if line_object["currency_id"]:
            field_name = "format_header_amount_%s" % line_object["currency_name"]
            if hasattr(self, field_name):
                format_amt = getattr(self, field_name)
            else:
                format_amt = self.workbook.add_format(
                    {"bold": True, "border": True, "bg_color": "#FFFFCC"}
                )
                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_header_format_dict ( self , line_object ) : format_amt = self . format_header_amount if line_object [ "currency_id" ] : field_name = "format_header_amount_%s" % line_object [ "currency_name" ] if hasattr ( self , field_name ) : format_amt = getattr ( self , field_name ) else : format_amt = self . workbook . add_format ( { "bold" : True , "border" : True , "bg_color" : "#FFFFCC" } ) 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 header format for each currency.
Return amount header format for each currency .
""" Return amount header format for each currency. """
self
line_object