~camptocamp/c2c-financial-addons/trunk

« back to all changes in this revision

Viewing changes to account_financial_report_webkit/report/common_partner_reports.py

  • Committer: Guewen Baconnier @ Camptocamp
  • Date: 2012-09-11 14:19:53 UTC
  • Revision ID: guewen.baconnier@camptocamp.com-20120911141953-dir197rfxohba5z2
[IMP] remove deprecated argument

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
            periods.append(first_special.id)
96
96
        return periods
97
97
 
98
 
    def _get_query_params_from_periods(self, period_start, period_stop, mode='exclude_opening'):
 
98
    def _get_query_params_from_periods(self, period_start, period_stop):
99
99
        """
100
100
        Build the part of the sql "where clause" which filters on the selected
101
101
        periods.
102
102
 
103
103
        :param browse_record period_start: first period of the report to print
104
104
        :param browse_record period_stop: last period of the report to print
105
 
        :param str mode: deprecated
106
105
        """
107
106
        # we do not want opening period so we exclude opening
108
107
        periods = self.pool.get('account.period').build_ctx_periods(
141
140
        return sql_conditions, search_params
142
141
 
143
142
    def _get_partners_move_line_ids(self, filter_from, account_id, start, stop,
144
 
                                    target_move, opening_mode='exclude_opening',
145
 
                                    exclude_reconcile=False, partner_filter=None):
 
143
                                    target_move, exclude_reconcile=False,
 
144
                                    partner_filter=None):
146
145
        """
147
146
 
148
147
        :param str filter_from: "periods" or "dates"
150
149
        :param str or browse_record start: start date or start period
151
150
        :param str or browse_record stop: stop date or stop period
152
151
        :param str target_move: 'posted' or 'all'
153
 
        :param opening_mode: deprecated
154
152
        :param boolean exclude_reconcile: wether the reconciled entries are
155
153
            filtred or not
156
154
        :param list partner_filter: list of partner ids, will filter on their