Hardik Ansodariya (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-580469-han into 
lp:openobject-addons/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-580469-han/+merge/130105

Hello,

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

With reference of maintanence case: 580469

Thanks
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-580469-han/+merge/130105
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-580469-han.
=== 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 @@
         if check:
             done = []
             for line in self.browse(cr, uid, ids):
+                if line.period_id.state == 'done':
+                    raise osv.except_osv(_('Unable to change Journal Items'), _('You can not change the journal items of closed period'))
                 if line.move_id.id not in done:
                     done.append(line.move_id.id)
                     move_obj.validate(cr, uid, [line.move_id.id], context)

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to