Merge lp:~openerp-dev/openobject-addons/trunk-bug-1244368-cod into lp:openobject-addons

Proposed by Chirag Dodiya(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1244368-cod
Merge into: lp:openobject-addons
Diff against target: 21 lines (+2/-2)
1 file modified
stock/stock.py (+2/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1244368-cod
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+199772@code.launchpad.net

Description of the change

Hello,

    I have fixed this bug "canceled inventory does not reverse the GL entries".

Thanks,
Chirag Dodiya(cod).

To post a comment you must log in.

Unmerged revisions

9022. By Chirag Dodiya(OpenERP)

[MRG] Merge with lp:openobject-addons

9021. By Chirag Dodiya(OpenERP)

[IMP] Improved code to fix yml error

9020. By Chirag Dodiya(OpenERP)

[FIX] Fixed this bug:canceled inventory does not reverse the GL entries

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/stock.py'
2--- stock/stock.py 2013-12-18 15:57:15 +0000
3+++ stock/stock.py 2013-12-20 09:35:23 +0000
4@@ -2362,7 +2362,7 @@
5 {
6 'journal_id': j_id,
7 'line_id': move_lines,
8- 'ref': move.picking_id and move.picking_id.name}, context=context)
9+ 'ref': move.picking_id and move.picking_id.name or move.name}, context=context)
10
11 def action_done(self, cr, uid, ids, context=None):
12 """ Makes the move done and if all moves are done, it will finish the picking.
13@@ -2881,7 +2881,7 @@
14 for inv in self.browse(cr, uid, ids, context=context):
15 move_obj.action_cancel(cr, uid, [x.id for x in inv.move_ids], context=context)
16 for move in inv.move_ids:
17- account_move_ids = account_move_obj.search(cr, uid, [('name', '=', move.name)])
18+ account_move_ids = account_move_obj.search(cr, uid, [('ref', '=', move.name)])
19 if account_move_ids:
20 account_move_data_l = account_move_obj.read(cr, uid, account_move_ids, ['state'], context=context)
21 for account_move in account_move_data_l:

Subscribers

People subscribed via source and target branches

to all changes: