# Selezione tutte le fatture emesse nel periodo
self.cr.execute("""
SELECT id FROM account_invoice
- WHERE (state='open' OR state='paid') AND
- period_id="""+str(period.id)+"""
- AND (type='out_invoice' OR type='out_refund')
+ WHERE (state='open' OR state='paid') AND period_id="""+str(period.id)+""" AND (type='out_invoice' OR type='out_refund')
""")
ids=self.cr.fetchall()
#print 'IDS = ',