Browse Source

Fix .travis.yml and fix method get_balance

pull/9/head
dufresnedavid 10 years ago
committed by Maxime Chambreuil
parent
commit
37626bce76
  1. 4
      .travis.yml
  2. 5
      account_partner_aged_statement_webkit/report/partner_aged_statement_report.py

4
.travis.yml

@ -19,8 +19,8 @@ virtualenv:
install:
- git clone https://github.com/OCA/reporting-engine ${HOME}/reporting-engine -b ${VERSION}
- git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-precise-amd64.deb
- sudo dpkg -i wkhtmltox-0.12.1_linux-precise-amd64.deb
- sudo wget http://sourceforge.net/projects/wkhtmltopdf/files/0.12.2.1/wkhtmltox-0.12.2.1_linux-precise-amd64.deb -P /tmp/
- sudo dpkg -i /tmp/wkhtmltox-0.12.2.1_linux-precise-amd64.deb
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- travis_install_nightly

5
account_partner_aged_statement_webkit/report/partner_aged_statement_report.py

@ -57,12 +57,11 @@ class PartnerAgedTrialReport(aged_trial_report):
self.partner_invoices_dict = {}
self.ttype = 'receipt'
def _get_balance(self, partner, company, date=False):
def _get_balance(self, partner, company):
"""
Get the lines of balance to display in the report
"""
today = date and datetime.strptime(date, DEFAULT_SERVER_DATE_FORMAT) \
or datetime.now()
today = datetime.now()
date_30 = today - relativedelta(days=30)
date_60 = today - relativedelta(days=60)
date_90 = today - relativedelta(days=90)

Loading…
Cancel
Save