diff --git a/CHANGELOG b/CHANGELOG index 48edaea5d6..cb790a85b8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,4 @@ +* Remove password on set_trytond * Manage reload, save, delete, duplicate and click as class and instance method Version 3.4.0 - 2014-10-20 diff --git a/proteus/config.py b/proteus/config.py index c01e4514ce..7705a4e7b2 100644 --- a/proteus/config.py +++ b/proteus/config.py @@ -192,7 +192,7 @@ class TrytondConfig(Config): 'Configuration for trytond' def __init__(self, database=None, user='admin', language='en_US', - password='', config_file=os.environ.get('TRYTOND_CONFIG')): + config_file=os.environ.get('TRYTOND_CONFIG')): super(TrytondConfig, self).__init__() if not database: database = os.environ.get('TRYTOND_DATABASE_URI') @@ -261,11 +261,11 @@ class TrytondConfig(Config): return methods -def set_trytond(database=None, user='admin', language='en_US', password='', +def set_trytond(database=None, user='admin', language='en_US', config_file=None): 'Set trytond package as backend' _CONFIG.current = TrytondConfig(database, user, language=language, - password=password, config_file=config_file) + config_file=config_file) return _CONFIG.current