~banking-addons-team/banking-addons/6.1

« back to all changes in this revision

Viewing changes to account_banking/wizard/bank_import.py

  • Committer: Stefan Rijnhart
  • Date: 2012-07-09 17:28:54 UTC
  • mfrom: (136.1.2 banking-addons)
  • Revision ID: stefan@therp.nl-20120709172854-ureozv4xsxgl2xxw
[FIX] Period search should ignore opening/closing periods

Show diffs side-by-side

added added

removed removed

Lines of Context:
260
260
            # Get the period for the statement (as bank statement object checks this)
261
261
            period_ids = period_obj.search(cursor, uid, [('company_id','=',company.id),
262
262
                                                         ('date_start','<=',statement.date),
263
 
                                                         ('date_stop','>=',statement.date)])
 
263
                                                         ('date_stop','>=',statement.date),
 
264
                                                         ('special', '=', False)])
264
265
 
265
266
            # Create the bank statement record
266
267
            statement_id = statement_obj.create(cursor, uid, dict(