Merge lp:~openerp-dev/openobject-addons/6.1-opw-580469-han into lp:openobject-addons/6.1

Proposed by Hardik Ansodariya (OpenERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 7029
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-580469-han
Merge into: lp:openobject-addons/6.1
Diff against target: 12 lines (+2/-0)
1 file modified
account/account_move_line.py (+2/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-580469-han
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+130105@code.launchpad.net

Description of the change

Hello,

fixed the issue of allowing write the journal items of closed periods.

With reference of maintanence case: 580469

Thanks

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

This bug was qualified as Confirmed on Trunk (means still existing and reproducible). A Merge Proposal for trunk was created to fix it. Here is the link to follow the MP on Launchpad https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-580469-port-mma/+merge/136333 and be informed once it's been merged in trunk: ... If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Unmerged revisions

7029. By Hardik Ansodariya (OpenERP)

[FIX] account_move_line: Fixed the issue of writing journal items of closed period (Maintanence Case: 580469)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'account/account_move_line.py'
--- account/account_move_line.py 2012-09-06 14:35:17 +0000
+++ account/account_move_line.py 2012-10-17 12:36:34 +0000
@@ -1197,6 +1197,8 @@
1197 if check:1197 if check:
1198 done = []1198 done = []
1199 for line in self.browse(cr, uid, ids):1199 for line in self.browse(cr, uid, ids):
1200 if line.period_id.state == 'done':
1201 raise osv.except_osv(_('Unable to change Journal Items'), _('You can not change the journal items of closed period'))
1200 if line.move_id.id not in done:1202 if line.move_id.id not in done:
1201 done.append(line.move_id.id)1203 done.append(line.move_id.id)
1202 move_obj.validate(cr, uid, [line.move_id.id], context)1204 move_obj.validate(cr, uid, [line.move_id.id], context)