diff options
| author | Turkesh Patel (Open ERP) <tpa@tinyerp.com> | 2013-10-04 18:37:19 +0530 |
|---|---|---|
| committer | Turkesh Patel (Open ERP) <tpa@tinyerp.com> | 2013-10-04 18:37:19 +0530 |
| commit | 1db5d4ccd66e1909d1ba79accf5fcd6d01d8a5e4 (patch) | |
| tree | 17691916871c43afa9f796e501f9f3cb5774c503 | |
| parent | 872b4de22c0087e0df719ad612f073b293545cef (diff) | |
[IMP] remove call of button_compute method.
bzr revid: tpa@tinyerp.com-20131004130719-qnnhhv0j3j6gj5yz
| -rw-r--r-- | addons/sale_stock/stock.py | 2 |
1 files changed, 0 insertions, 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 |
