From 036dfd209ee714f2ca0e6c4cd0cc122556e2dbca Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Wed, 31 Mar 2010 16:48:00 +0200 Subject: [PATCH] modifs bzr revid: fp@tinyerp.com-20100331144800-y7e8kso0qsretfpb --- .../account_analytic_plans.py | 1 - addons/base_calendar/base_calendar.py | 1 - .../base_report_designer/base_report_designer.py | 1 - addons/board/board.py | 3 --- addons/crm/crm_segmentation.py | 2 -- addons/crm_profiling/crm_profiling.py | 2 -- addons/point_of_sale/pos.py | 21 -------------------- addons/stock/stock.py | 1 - 8 files changed, 32 deletions(-) diff --git a/addons/account_analytic_plans/account_analytic_plans.py b/addons/account_analytic_plans/account_analytic_plans.py index af19707..7f1e385 100644 --- a/addons/account_analytic_plans/account_analytic_plans.py +++ b/addons/account_analytic_plans/account_analytic_plans.py @@ -404,7 +404,6 @@ class sale_order_line(osv.osv): if rec: pool_inv_line.write(cr, uid, [line.id], {'analytics_id':rec.analytics_id.id}, context=context) - cr.commit() return create_ids sale_order_line() diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index 17202c3..3c99b7b 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -562,7 +562,6 @@ are both optional, but if one occurs, so MUST the other"""), cr.execute('Update %s set base_calendar_alarm_id=%s, alarm_id=%s \ where id=%s' % (model_obj._table, \ alarm_id, basic_alarm.id, data.id)) - cr.commit() return True def do_alarm_unlink(self, cr, uid, ids, model, context={}): diff --git a/addons/base_report_designer/base_report_designer.py b/addons/base_report_designer/base_report_designer.py index bddc9da..311449f 100644 --- a/addons/base_report_designer/base_report_designer.py +++ b/addons/base_report_designer/base_report_designer.py @@ -60,7 +60,6 @@ class report_xml(osv.osv): 'report_sxw_content': base64.decodestring(file_sxw), 'report_rml_content': str(sxw2rml(sxwval, xsl=fp.read())), }) - cr.commit() db = pooler.get_db_only(cr.dbname) interface.register_all(db) return True diff --git a/addons/board/board.py b/addons/board/board.py index 29e8a33..5154a7c 100644 --- a/addons/board/board.py +++ b/addons/board/board.py @@ -57,15 +57,12 @@ class board_board(osv.osv): def write(self, cr, uid, ids, vals, context={}): result = super(board_board, self).write(cr, uid, ids, vals, context) - cr.commit() board = self.pool.get('board.board').browse(cr, uid, ids[0]) view = self.create_view(cr, uid, ids[0], context) id = board.view_id.id cr.execute("update ir_ui_view set arch=%s where id=%s" , (view, id)) - cr.commit() - return result def create(self, cr, user, vals, context=None): diff --git a/addons/crm/crm_segmentation.py b/addons/crm/crm_segmentation.py index 2f0e2a1..2844cd0 100644 --- a/addons/crm/crm_segmentation.py +++ b/addons/crm/crm_segmentation.py @@ -78,10 +78,8 @@ class crm_segmentation(osv.osv): for partner_id in partners: cr.execute('insert into res_partner_category_rel (category_id,partner_id) values (%s,%s)', (categ['categ_id'][0],partner_id)) - cr.commit() self.write(cr, uid, [id], {'state':'not running', 'partner_id':0}) - cr.commit() return True def process_stop(self, cr, uid, ids, *args): diff --git a/addons/crm_profiling/crm_profiling.py b/addons/crm_profiling/crm_profiling.py index 7e70df3..dc019f9 100644 --- a/addons/crm_profiling/crm_profiling.py +++ b/addons/crm_profiling/crm_profiling.py @@ -243,10 +243,8 @@ class crm_segmentation(osv.osv): for partner_id in partners: cr.execute('insert into res_partner_category_rel (category_id,partner_id) values (%s,%s)', (categ['categ_id'][0],partner_id)) - cr.commit() self.write(cr, uid, [id], {'state':'not running', 'partner_id':0}) - cr.commit() return True crm_segmentation() diff --git a/addons/point_of_sale/pos.py b/addons/point_of_sale/pos.py index 4b3f73f..c551ccd 100644 --- a/addons/point_of_sale/pos.py +++ b/addons/point_of_sale/pos.py @@ -158,28 +158,8 @@ class pos_order(osv.osv): if val