Browse Source

[FIX] emc_tax_shelter: exclude line from wrong black formatting

pull/123/head
robin.keunen 4 years ago
parent
commit
e54c95a0d1
  1. 8
      easy_my_coop_website_taxshelter/controllers/main.py

8
easy_my_coop_website_taxshelter/controllers/main.py

@ -105,6 +105,11 @@ class PortalTaxShelter(CustomerPortal):
"easy_my_coop_website_taxshelter.portal_my_tax_shelter", values "easy_my_coop_website_taxshelter.portal_my_tax_shelter", values
) )
# Black adds a trailing comma after last argument of function definition
# this syntax is invalid for python < 3.6
# Exclude for formatting while not fixed, follow status here:
# https://github.com/psf/black/issues/1657
# fmt: off
@http.route( @http.route(
["/my/tax_shelter_certificates/<int:certificate_id>"], ["/my/tax_shelter_certificates/<int:certificate_id>"],
type="http", type="http",
@ -118,8 +123,9 @@ class PortalTaxShelter(CustomerPortal):
report_type=None, report_type=None,
download=False, download=False,
query_string=None, query_string=None,
**kw,
**kw
): ):
# fmt: on
partner = request.env.user.partner_id partner = request.env.user.partner_id
try: try:
taxshelter_certificate_sudo = self._document_check_access( taxshelter_certificate_sudo = self._document_check_access(

Loading…
Cancel
Save