summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2010-03-31 16:48:00 +0200
committerFabien Pinckaers <fp@tinyerp.com>2010-03-31 16:48:00 +0200
commit036dfd209ee714f2ca0e6c4cd0cc122556e2dbca (patch)
treeb2c98bd528f25f4e82c41541e693c3f91f11a8bd /addons
parent8e15fd52b369bc2f16739423d4db485bd6963653 (diff)
modifs
bzr revid: fp@tinyerp.com-20100331144800-y7e8kso0qsretfpb
Diffstat (limited to 'addons')
-rw-r--r--addons/account_analytic_plans/account_analytic_plans.py1
-rw-r--r--addons/base_calendar/base_calendar.py1
-rw-r--r--addons/base_report_designer/base_report_designer.py1
-rw-r--r--addons/board/board.py3
-rw-r--r--addons/crm/crm_segmentation.py2
-rw-r--r--addons/crm_profiling/crm_profiling.py2
-rw-r--r--addons/point_of_sale/pos.py21
-rw-r--r--addons/stock/stock.py1
8 files changed, 0 insertions, 32 deletions
diff --git a/addons/account_analytic_plans/account_analytic_plans.py b/addons/account_analytic_plans/account_analytic_plans.py
index af197076c23..7f1e3854f6a 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 17202c3ba83..3c99b7b5410 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 bddc9da9e17..311449fd46c 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 29e8a3310b4..5154a7cb993 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 2f0e2a1c650..2844cd02881 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 7e70df3dc4a..dc019f9a4be 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 4b3f73f34d8..c551ccd9ca0 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<o.date_created:
val=o.date_created
if val:
- # cr.execute("Update pos_order set date_payment='%s' where id = %d"%(val, order.id))
- # cr.commit()
res[order.id]=val
return res
- # tax_obj = self.pool.get('account.tax')
- # pay_obj = self.pool.get('pos.payment')
- # for order in self.browse(cr, uid, ids):
- # val = 0.0
- # tot =0.0
- # for pay in order.payments:
- # tot+= pay.amount
- # if order.amount_total==tot:
- # res[order.id]=time.strftime('%Y-%m-%d')
- # for line in order.lines:
-
- # val = reduce(lambda x, y: x+round(y['amount'], 2),
- # tax_obj.compute_inv(cr, uid, line.product_id.taxes_id,
- # line.price_unit * \
- # (1-(line.discount or 0.0)/100.0), line.qty),
- # val)
-
- # res[order.id] = val
def _amount_tax(self, cr, uid, ids, field_name, arg, context):
res = {}
@@ -565,7 +545,6 @@ class pos_order(osv.osv):
val=val and val[0] or None
if val:
cr.execute("Update pos_order set date_payment='%s' where id = %d"%(val, order.id))
- cr.commit()
return True
diff --git a/addons/stock/stock.py b/addons/stock/stock.py
index 7012e23dbe7..94fab1dacec 100644
--- a/addons/stock/stock.py
+++ b/addons/stock/stock.py
@@ -2096,7 +2096,6 @@ class stock_picking_move_wizard(osv.osv_memory):
if line.picking_id:
picking_obj.write(cr, uid, [line.picking_id.id], {'move_lines': [(1, line.id, {'picking_id': act['picking_id']})]})
picking_obj.write(cr, uid, [act['picking_id']], {'move_lines': [(1, line.id, {'picking_id': act['picking_id']})]})
- cr.commit()
old_picking = picking_obj.read(cr, uid, [line.picking_id.id])[0]
if not len(old_picking['move_lines']):
picking_obj.write(cr, uid, [old_picking['id']], {'state': 'done'})