Browse Source

[fix] index errors when we acces to list if the are not lines in journal lines_in[0]

pull/349/head
Mourad Elhadj Mimoune 7 years ago
parent
commit
6b91330d32
  1. 2
      account_journal_report_xls/report/nov_account_journal.py

2
account_journal_report_xls/report/nov_account_journal.py

@ -182,6 +182,8 @@ class nov_journal_print(report_sxw.rml_parse):
(tuple(period_ids), journal_id, (tuple(period_ids), journal_id,
tuple(self.move_states))) tuple(self.move_states)))
lines = self.cr.dictfetchall() lines = self.cr.dictfetchall()
if not lines:
return lines
# add reference of corresponding origin document # add reference of corresponding origin document
if journal.type in ('sale', 'sale_refund', 'purchase', if journal.type in ('sale', 'sale_refund', 'purchase',

Loading…
Cancel
Save