~camptocamp/c2c-financial-addons/trunk

« back to all changes in this revision

Viewing changes to account_financial_report_webkit/report/open_invoices.py

  • Committer: Guewen Baconnier @ Camptocamp
  • Date: 2012-09-11 14:15:00 UTC
  • mfrom: (19.1.64 6.1)
  • Revision ID: guewen.baconnier@camptocamp.com-20120911141500-8tzx2kk7209eq5gu
[MRG] Merged branch with the fixes for the most recent bugs found:

 * Partner balance (in standalone mode, without comparison):
   the partners with a final balance of 0.0 were hidden,
   they must be displayed because we need also, at least their initial balance,
   so we can compare with the preceding year. The debit / credit can be useful too.

 * All partners' reports:
   we can not rely on the entries generated by OpenERP in the opening period for the parters,
   so we force the computation of the initial balance based on the previous fiscal years.
   (previously, we were displaying the entries of the opening period if there
   was at least one, otherwise we were computing it).

 * The computed initial balance was wrong when the opening period
   of the very first fiscal year had entries.
   The entries of the opening periods have to be excluded from the initial balances,
   excepted for this case, because they do not have any counterpart the preceding year.

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
                                                                         stop,
209
209
                                                                         target_move,
210
210
                                                                         exclude_reconcile=True,
211
 
                                                                         partner_filter=partner_filter,
212
 
                                                                         opening_mode='exclude_opening')
 
211
                                                                         partner_filter=partner_filter)
213
212
 
214
213
            if not initial_move_lines_ids_per_partner and not move_line_ids_per_partner:
215
214
                continue