~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to msf_budget/report/report_budget_criteria.py

  • Committer: Olivier DOSSMANN
  • Date: 2014-03-05 14:39:51 UTC
  • mto: This revision was merged to the branch mainline in revision 2018.
  • Revision ID: od@tempo-consulting.fr-20140305143951-35but6bq7xsxn8by
REF-36 [IMP] Clean code for msf_budget module with Eclispe

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#
20
20
##############################################################################
21
21
from report import report_sxw
22
 
import csv
23
 
import StringIO
24
 
import pooler
25
 
import locale
26
22
import datetime
27
23
from tools.translate import _
28
24
from spreadsheet_xml.spreadsheet_xml_write import SpreadsheetReport
149
145
 
150
146
    def getMonthAllocation(self, line, cost_center_ids, date_start, date_stop, end_month, company_currency, add_commitment=False, currency_table=False, context=None):
151
147
        """
152
 
        Get analytic allocation for the given budget_line 
 
148
        Get analytic allocation for the given budget_line
153
149
        """
154
150
        # Some checks
155
151
        if context is None:
266
262
        if not budget_line_ids:
267
263
            return {}, {}
268
264
        # Prepare some values
269
 
        res = {}
270
265
        context = {}
271
266
        ids = [x.id for x in budget_line_ids]
272
267
        fields = [