Priyesh (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-576244-pso into 
lp:openobject-addons/6.0.

Requested reviews:
  Olivier Dony (OpenERP) (odo-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-576244-pso/+merge/112062

Hello,

If you duplicate a journal entry, It will not allow you to change the period 
and will raise a warning.

I fixed this issue. Kindly review it and provide your inputs on it.

Regards,
Priyesh
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-576244-pso/+merge/112062
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-576244-pso.
=== modified file 'account/account.py'
--- account/account.py	2012-03-26 15:50:10 +0000
+++ account/account.py	2012-06-26 10:52:06 +0000
@@ -1164,15 +1164,6 @@
                     return False
         return True
 
-    def _check_period_journal(self, cursor, user, ids, context=None):
-        for move in self.browse(cursor, user, ids, context=context):
-            for line in move.line_id:
-                if line.period_id.id != move.period_id.id:
-                    return False
-                if line.journal_id.id != move.journal_id.id:
-                    return False
-        return True
-
     def _check_date(self, cursor, user, ids, context=None):
         for move in self.browse(cursor, user, ids, context=context):
             if move.journal_id.allow_date:
@@ -1184,9 +1175,6 @@
         (_check_centralisation,
             'You cannot create more than one move per period on centralized journal',
             ['journal_id']),
-        (_check_period_journal,
-            'You cannot create entries on different periods/journals in the same move',
-            ['line_id']),
         (_check_date,
             'The date of your Journal Entry is not in the defined period!',
             ['journal_id'])

_______________________________________________
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