summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorced <>2007-06-21 07:27:51 +0000
committerced <>2007-06-21 07:27:51 +0000
commit6bd9d4fc2612becbb73ca65b9b4e7750843d5caa (patch)
tree9e853ae9b7989569b8c3713b16c60f4fe105e198
parentcc4b5d3570d67869a1cb8c3c8b61de11d77a403c (diff)
STOCK: fix credit/debit on account move for stock
bzr revid: ced-4ca7b5416a0a5645938da47d4622694dfa6e5687
-rw-r--r--addons/stock/stock.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/stock/stock.py b/addons/stock/stock.py
index e2eb5e0a383..d8e9564ca75 100644
--- a/addons/stock/stock.py
+++ b/addons/stock/stock.py
@@ -818,8 +818,8 @@ class stock_move(osv.osv):
ref = move.picking_id and move.picking_id.name or False
amount = move.product_qty * move.product_id.standard_price
lines = [
- (0,0,{'name': move.name, 'quantity': move.product_qty, 'debit': amount, 'account_id': acc_src, 'ref': ref}),
- (0,0,{'name': move.name, 'quantity': move.product_qty, 'credit': amount, 'account_id': acc_dest, 'ref': ref})
+ (0,0,{'name': move.name, 'quantity': move.product_qty, 'credit': amount, 'account_id': acc_src, 'ref': ref}),
+ (0,0,{'name': move.name, 'quantity': move.product_qty, 'debit': amount, 'account_id': acc_dest, 'ref': ref})
]
self.pool.get('account.move').create(cr, uid, {'name': move.name, 'journal_id': journal_id, 'line_id': lines, 'ref': ref})
self.write(cr, uid, ids, {'state':'done'})