Browse Source

Lint for Travis

pull/654/head
Graeme Gellatly 6 years ago
committed by mreficent
parent
commit
03c3394954
  1. 2
      partner_statement/README.rst
  2. 2
      partner_statement/readme/USAGE.rst
  3. 18
      partner_statement/report/report_statement_common.py

2
partner_statement/README.rst

@ -67,7 +67,7 @@ Usage
To use this module, you need to: To use this module, you need to:
#. Go to Invoicing > Sales > Master Data > Customers or Invoicing > Purchases > Master Data > Vendors and select one or more
#. Go to a list of Partners, Contacts, Customer or Vendors and select one or more.
#. Press 'Action > Partner Activity Statement' or 'Action > Partner Outstanding Statement' respectively. #. Press 'Action > Partner Activity Statement' or 'Action > Partner Outstanding Statement' respectively.
#. Indicate if you want to display receivables or payables, and if you want to display aging buckets and the aging type. #. Indicate if you want to display receivables or payables, and if you want to display aging buckets and the aging type.
#. Optionally complete advanced options such as filtering non due or negative balance partners. #. Optionally complete advanced options such as filtering non due or negative balance partners.

2
partner_statement/readme/USAGE.rst

@ -1,6 +1,6 @@
To use this module, you need to: To use this module, you need to:
#. Go to Invoicing > Sales > Master Data > Customers or Invoicing > Purchases > Master Data > Vendors and select one or more
#. Go to a list of Partners, Contacts, Customer or Vendors and select one or more.
#. Press 'Action > Partner Activity Statement' or 'Action > Partner Outstanding Statement' respectively. #. Press 'Action > Partner Activity Statement' or 'Action > Partner Outstanding Statement' respectively.
#. Indicate if you want to display receivables or payables, and if you want to display aging buckets and the aging type. #. Indicate if you want to display receivables or payables, and if you want to display aging buckets and the aging type.
#. Optionally complete advanced options such as filtering non due or negative balance partners. #. Optionally complete advanced options such as filtering non due or negative balance partners.

18
partner_statement/report/report_statement_common.py

@ -345,12 +345,18 @@ class ReportStatementCommon(models.AbstractModel):
partners_to_remove = set() partners_to_remove = set()
for partner_id in partner_ids: for partner_id in partner_ids:
res[partner_id] = { res[partner_id] = {
'today': format_date(today,
date_formats.get(partner_id, default_fmt)),
'start': format_date(date_start,
date_formats.get(partner_id, default_fmt)),
'end': format_date(date_end,
date_formats.get(partner_id, default_fmt)),
'today': format_date(
today,
date_formats.get(partner_id, default_fmt)
),
'start': format_date(
date_start,
date_formats.get(partner_id, default_fmt)
),
'end': format_date(
date_end,
date_formats.get(partner_id, default_fmt)
),
'currencies': {}, 'currencies': {},
} }
currency_dict = res[partner_id]['currencies'] currency_dict = res[partner_id]['currencies']

Loading…
Cancel
Save