def METHOD_NAME(self):
    res = super(AccountMoveLine, self).METHOD_NAME()
    # Take accounts from stock location in case the category allow changinc
    # accounts and the picking is not notice
    if (
        self.product_id.categ_id.l10n_ro_stock_account_change
        and self.product_id.type == "product"
        and self.move_id.is_l10n_ro_record
    ):
        fiscal_position = self.move_id.fiscal_position_id
        if self.move_id.is_purchase_document():
            stock_moves = self._get_account_change_stock_moves_purchase()
            for stock_move in stock_moves:
                if (
                    stock_move.location_dest_id.l10n_ro_property_stock_valuation_account_id
                ):
                    location = stock_move.location_dest_id
                    res = location.l10n_ro_property_stock_valuation_account_id
        if self.move_id.is_sale_document():
            stock_moves = self._get_account_change_stock_moves_sale()
            for stock_move in stock_moves:
                if (
                    stock_move.location_id.l10n_ro_property_account_income_location_id
                ):
                    location = stock_move.location_id
                    res = location.l10n_ro_property_account_income_location_id
        if fiscal_position:
            res = fiscal_position.map_account(res)
    return res