← Back to team overview

credativ team mailing list archive

[Branch ~credativ/openobject-addons/6.1] Rev 7041: [REVERT] Revert revision 7033

 

------------------------------------------------------------
revno: 7041
committer: Craig Gowing (credativ) <craig.gowing@xxxxxxxxxxxxxx>
branch nick: addons
timestamp: Wed 2013-06-19 13:57:27 +0100
message:
  [REVERT] Revert revision 7033
modified:
  account/account_move_line.py


--
lp:~credativ/openobject-addons/6.1
https://code.launchpad.net/~credativ/openobject-addons/6.1

Your team credativ is subscribed to branch lp:~credativ/openobject-addons/6.1.
To unsubscribe from this branch go to https://code.launchpad.net/~credativ/openobject-addons/6.1/+edit-subscription
=== modified file 'account/account_move_line.py'
--- account/account_move_line.py	2013-06-19 12:50:47 +0000
+++ account/account_move_line.py	2013-06-19 12:57:27 +0000
@@ -695,17 +695,6 @@
     # writeoff; entry generated for the difference between the lines
     #
     def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False):
-        if context is None:
-            context = {}
-        if context and context.get('periods', False):
-            args.append(('period_id', 'in', context['periods']))
-        elif context and context.get('fiscalyear', False):
-            periods = self.pool.get('account.fiscalyear').browse(cr, uid, context['fiscalyear'], context=context).period_ids
-            args.append(('period_id', 'in', [period.id for period in periods]))
-        if context and context.get('state', False):
-            if context['state'] == 'posted':
-                args.append(('move_id.state','=',context['state']))
-                        
         partner_domain = self._partner_domain(cr, uid, offset, context=context)
         if partner_domain is None:
             return []