addons14/account_financial_report/report/abstract_report_xlsx.py
def write_initial_balance_from_dict(self, my_object, label):
        """Write a specific initial balance line on current line
        using defined columns field_initial_balance name.
        Columns are defined with `_get_report_columns` method.
        """
        col_pos_label = self._get_col_pos_initial_balance_label()
        self.sheet.write(self.row_pos, col_pos_label, label, self.format_right)
        for col_pos, column in self.columns.items():
            if column.get("field_initial_balance"):
                value = my_object.get(column["field_initial_balance"], False)
                cell_type = column.get("type", "string")
                if cell_type == "string":
                    self.sheet.write_string(self.row_pos, col_pos, value or "")
                elif cell_type == "amount":
                    self.sheet.write_number(
                        self.row_pos, col_pos, float(value), self.format_amount
                    )
                elif cell_type == "amount_currency":
                    if my_object["currency_id"]:
                        format_amt = self._get_currency_amt_format(my_object)
                        self.sheet.write_number(
                            self.row_pos, col_pos, float(value), format_amt
                        )
            elif column.get("field_currency_balance"):
                value = my_object.get(column["field_currency_balance"], False)
                cell_type = column.get("type", "string")
                if cell_type == "many2one":
                    if my_object["currency_id"]:
                        self.sheet.write_string(
                            self.row_pos, col_pos, value.name or "", self.format_right
                        )
        self.row_pos += 1
Write a specific initial balance line on current line
        using defined columns field_initial_balance name.
        Columns are defined with `_get_report_columns` method.
        
Write a specific initial balance line on current line
using defined columns field_initial_balance name.
Columns are defined with `_get_report_columns` method.
Write a specific initial balance line on current line using defined columns field_initial_balance name . Columns are defined with ` _get_report_columns ` method .
def write_initial_balance_from_dict(self, my_object, label):
        col_pos_label = self._get_col_pos_initial_balance_label()
        self.sheet.write(self.row_pos, col_pos_label, label, self.format_right)
        for col_pos, column in self.columns.items():
            if column.get("field_initial_balance"):
                value = my_object.get(column["field_initial_balance"], False)
                cell_type = column.get("type", "string")
                if cell_type == "string":
                    self.sheet.write_string(self.row_pos, col_pos, value or "")
                elif cell_type == "amount":
                    self.sheet.write_number(
                        self.row_pos, col_pos, float(value), self.format_amount
                    )
                elif cell_type == "amount_currency":
                    if my_object["currency_id"]:
                        format_amt = self._get_currency_amt_format(my_object)
                        self.sheet.write_number(
                            self.row_pos, col_pos, float(value), format_amt
                        )
            elif column.get("field_currency_balance"):
                value = my_object.get(column["field_currency_balance"], False)
                cell_type = column.get("type", "string")
                if cell_type == "many2one":
                    if my_object["currency_id"]:
                        self.sheet.write_string(
                            self.row_pos, col_pos, value.name or "", self.format_right
                        )
        self.row_pos += 1
def write_initial_balance_from_dict ( self , my_object , label ) : col_pos_label = self . _get_col_pos_initial_balance_label ( ) self . sheet . write ( self . row_pos , col_pos_label , label , self . format_right ) for col_pos , column in self . columns . items ( ) : if column . get ( "field_initial_balance" ) : value = my_object . get ( column [ "field_initial_balance" ] , False ) cell_type = column . get ( "type" , "string" ) if cell_type == "string" : self . sheet . write_string ( self . row_pos , col_pos , value or "" ) elif cell_type == "amount" : self . sheet . write_number ( self . row_pos , col_pos , float ( value ) , self . format_amount ) elif cell_type == "amount_currency" : if my_object [ "currency_id" ] : format_amt = self . _get_currency_amt_format ( my_object ) self . sheet . write_number ( self . row_pos , col_pos , float ( value ) , format_amt ) elif column . get ( "field_currency_balance" ) : value = my_object . get ( column [ "field_currency_balance" ] , False ) cell_type = column . get ( "type" , "string" ) if cell_type == "many2one" : if my_object [ "currency_id" ] : self . sheet . write_string ( self . row_pos , col_pos , value . name or "" , self . format_right ) self . row_pos += 1
Write a specific initial balance line on current line
using defined columns field_initial_balance name.
Write a specific initial balance line on current line using defined columns field_initial_balance name .
"""Write a specific initial balance line on current line
        using defined columns field_initial_balance name.
        Columns are defined with `_get_report_columns` method.
        """
self
my_object
label