From 1db5d4ccd66e1909d1ba79accf5fcd6d01d8a5e4 Mon Sep 17 00:00:00 2001 From: "Turkesh Patel (Open ERP)" Date: Fri, 4 Oct 2013 18:37:19 +0530 Subject: [PATCH] [IMP] remove call of button_compute method. bzr revid: tpa@tinyerp.com-20131004130719-qnnhhv0j3j6gj5yz --- addons/sale_stock/stock.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/sale_stock/stock.py b/addons/sale_stock/stock.py index bd08ce7d707..2ec0a7c60fb 100644 --- a/addons/sale_stock/stock.py +++ b/addons/sale_stock/stock.py @@ -115,7 +115,6 @@ class stock_picking(osv.osv): def _invoice_hook(self, cursor, user, picking, invoice_id): sale_obj = self.pool.get('sale.order') order_line_obj = self.pool.get('sale.order.line') - invoice_obj = self.pool.get('account.invoice') invoice_line_obj = self.pool.get('account.invoice.line') if picking.sale_id: sale_obj.write(cursor, user, [picking.sale_id.id], { @@ -129,7 +128,6 @@ class stock_picking(osv.osv): order_line_obj.write(cursor, user, [sale_line.id], { 'invoice_lines': [(6, 0, [invoice_line_id])], }) - invoice_obj.button_compute(cursor, user, [invoice_id]) return super(stock_picking, self)._invoice_hook(cursor, user, picking, invoice_id) # Redefinition of the new field in order to update the model stock.picking.out in the orm