From 85c8b304bfbaa715c92b878c0e51d8924f012db9 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 15 Dec 2008 16:08:35 +0100 Subject: [PATCH 1/6] [FIX] fix a stupid bug in database closing method lp bug: https://launchpad.net/bugs/308084 fixed bzr revid: christophe@cobalt-20081215150835-d4rkvaf35m1gbyj6 --- bin/sql_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sql_db.py b/bin/sql_db.py index 335a0950c13..03828a1ee87 100644 --- a/bin/sql_db.py +++ b/bin/sql_db.py @@ -221,7 +221,7 @@ class PoolManager(object): get = staticmethod(get) def close(db_name): - if db_name is PoolManager._pools: + if db_name in PoolManager._pools: logger.notifyChannel('dbpool', netsvc.LOG_INFO, 'Closing all connections to %s' % (db_name,)) PoolManager._pools[db_name].closeall() del PoolManager._pools[db_name] From 9f9f2ff78e08cd826f09f3f7dab0a80723112bbf Mon Sep 17 00:00:00 2001 From: Olivier Laurent Date: Mon, 15 Dec 2008 16:10:36 +0100 Subject: [PATCH 2/6] bugfix: search: ('id', 'in', 'ids') instead of ('id', '=', 'ids') bzr revid: olt@tinyerp.com-20081215151036-brk5sgbq5o7ci9jk --- bin/report/report_sxw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/report/report_sxw.py b/bin/report/report_sxw.py index ddf0393e910..501dd285f27 100644 --- a/bin/report/report_sxw.py +++ b/bin/report/report_sxw.py @@ -613,7 +613,7 @@ class report_sxw(report_rml): else: ir_menu_report_obj = pool.get('ir.ui.menu') report_menu_ids = ir_menu_report_obj.search(cr, uid, - [('id', '=', ids)], context=context) + [('id', 'in', ids)], context=context) if report_menu_ids: report_name = ir_menu_report_obj.browse(cr, uid, report_menu_ids[0], context=context) From be2a0a76bbd95ce83cc68a10ce25e5b60279a0e6 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 15 Dec 2008 16:36:16 +0100 Subject: [PATCH 3/6] [FIX] the database connectin pool generate at least one connection to ensure earliest that the database is reachable bzr revid: christophe@cobalt-20081215153616-dyb7xj771tzj5de1 --- bin/sql_db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/sql_db.py b/bin/sql_db.py index 03828a1ee87..3f4e23cc392 100644 --- a/bin/sql_db.py +++ b/bin/sql_db.py @@ -213,9 +213,9 @@ class PoolManager(object): logger = netsvc.Logger() try: logger.notifyChannel('dbpool', netsvc.LOG_INFO, 'Connecting to %s' % (db_name,)) - PoolManager._pools[db_name] = ConnectionPool(ThreadedConnectionPool(0, PoolManager.maxconn, PoolManager.dsn(db_name)), db_name) + PoolManager._pools[db_name] = ConnectionPool(ThreadedConnectionPool(1, PoolManager.maxconn, PoolManager.dsn(db_name)), db_name) except Exception, e: - logger.notifyChannel('dbpool', netsvc.LOG_CRITICAL, 'Unable to connect to %s: %r' % (db_name, e)) + logger.notifyChannel('dbpool', netsvc.LOG_CRITICAL, 'Unable to connect to %s: %s' % (db_name, e.message)) raise return PoolManager._pools[db_name] get = staticmethod(get) From adc8e511ba7492a8013c8c99dbc957eb14be5844 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Mon, 15 Dec 2008 21:22:41 +0100 Subject: [PATCH 4/6] [REF] Rewrite the domain field bzr revid: stephane@tinyerp.com-20081215202241-xvhn363iuzj1022c --- bin/addons/base/base_data.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/addons/base/base_data.xml b/bin/addons/base/base_data.xml index e41fccfe682..4777b7ea4f0 100644 --- a/bin/addons/base/base_data.xml +++ b/bin/addons/base/base_data.xml @@ -19,7 +19,7 @@ ir.ui.menu tree - + [('parent_id', '=', False)] From 2cc3ac1ef7968a471a72c0d1f79cecd3c03d60be Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Mon, 15 Dec 2008 22:06:59 +0100 Subject: [PATCH 5/6] improved_view bzr revid: fp@tinyerp.com-20081215210659-qm7pll67ylf9rv36 --- bin/addons/base/ir/ir.xml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/bin/addons/base/ir/ir.xml b/bin/addons/base/ir/ir.xml index c649b12cf99..53c9fb7e580 100644 --- a/bin/addons/base/ir/ir.xml +++ b/bin/addons/base/ir/ir.xml @@ -324,12 +324,25 @@ - + + ir.actions.wizard.tree + ir.actions.wizard + tree + + + + + + + + + + ir.actions.wizard ir.actions.wizard form -
+ @@ -340,7 +353,7 @@ - Wizard + Wizards ir.actions.act_window ir.actions.wizard form From ce70e60592b621c0b10ea531b1435b968beb04ac Mon Sep 17 00:00:00 2001 From: Husen Daudi Date: Tue, 16 Dec 2008 14:25:33 +0530 Subject: [PATCH 6/6] Fixed bug on function field if type is binary (ref:hmo) bzr revid: hda@tinyerp.com-20081216085533-4jjo15livmuh9mbp --- bin/osv/fields.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/osv/fields.py b/bin/osv/fields.py index 544bd9b3fee..e0da8d38945 100644 --- a/bin/osv/fields.py +++ b/bin/osv/fields.py @@ -602,6 +602,9 @@ class function(_column): if store: self._classic_read = True self._classic_write = True + if type=='binary': + self._symbol_get=lambda x:x and str(x) + if type == 'float': self._symbol_c = float._symbol_c self._symbol_f = float._symbol_f