diff --git a/account_renumber/test/create_moves.py b/account_renumber/test/create_moves.py index 93d1e9664..996855acc 100644 --- a/account_renumber/test/create_moves.py +++ b/account_renumber/test/create_moves.py @@ -2,8 +2,7 @@ ############################################################################## # # OpenERP - Account renumber wizard -# Copyright (C) 2009 Pexego Sistemas Informáticos. All Rights Reserved -# $Id$ +# Copyright (C) 2009 Pexego Sistemas Informáticos. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published @@ -19,30 +18,21 @@ # along with this program. If not, see . # ############################################################################## - -""" -Script that creates large amounts of account moves on different days, -that can be used later for testing the renumber wizard. -""" -__author__ = "Borja López Soilán (Pexego)" - import sys import xmlrpclib import logging + logger = logging.getLogger("create_lots_of_account_moves") def create_lots_of_account_moves(dbname, user, passwd, howmany): - """ - Small OpenERP function that will create lots of account moves - on the selected database, that can later be used for - testing the renumber wizard. + """Small Odoo function that will create lots of account moves on the + selected database, that can later be used for testing the renumber wizard. Note: The database must have demo data, and a fiscal year 2009 created. """ url_template = "http://%s:%s/xmlrpc/%s" server = "localhost" port = 8069 - user_id = 0 login_facade = xmlrpclib.ServerProxy( url_template % (server, port, 'common')) @@ -51,9 +41,7 @@ def create_lots_of_account_moves(dbname, user, passwd, howmany): url_template % (server, port, 'object')) for i in range(1, howmany): - # # Create one account move - # move_id = object_facade.execute(dbname, user_id, passwd, 'account.move', 'create', { 'ref': 'Test%s' % i, diff --git a/currency_rate_update/services/update_service_CH_ADMIN.py b/currency_rate_update/services/update_service_CH_ADMIN.py index 1dd1d025a..6c4d48e64 100644 --- a/currency_rate_update/services/update_service_CH_ADMIN.py +++ b/currency_rate_update/services/update_service_CH_ADMIN.py @@ -21,18 +21,16 @@ # ############################################################################## from .currency_getter_interface import Currency_getter_interface - import logging -_logger = logging.getLogger(__name__) - from datetime import datetime from openerp.tools import DEFAULT_SERVER_DATE_FORMAT +_logger = logging.getLogger(__name__) + class CH_ADMIN_getter(Currency_getter_interface): """Implementation of Currency_getter_factory interface - for Admin.ch service - + for Admin.ch service. """ def rate_retrieve(self, dom, ns, curr):