Browse Source

[PEP8] fix pep8

pull/1/head
houssine 6 years ago
parent
commit
0b4861af47
  1. 9
      easy_my_coop/models/partner.py
  2. 3
      easy_my_coop_website_taxshelter/controllers/main.py

9
easy_my_coop/models/partner.py

@ -30,10 +30,11 @@ class ResPartner(models.Model):
all_partners_and_children[partner] = self.search([('id', 'child_of', partner.id)]).ids
all_partner_ids += all_partners_and_children[partner]
# searching account.invoice.report via the orm is comparatively expensive
# (generates queries "id in []" forcing to build the full table).
# In simple cases where all invoices are in the same currency than the user's company
# access directly these elements
# searching account.invoice.report via the orm is comparatively
# expensive (generates queries "id in []" forcing to build the
# full table).
# In simple cases where all invoices are in the same currency than
# the user's company access directly these elements
# generate where clause to include multicompany rules
where_query = account_invoice_report._where_calc([

3
easy_my_coop_website_taxshelter/controllers/main.py

@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2015-2016 Odoo S.A.
# Copyright 2017-2018 Rémy Taymans <remytaymans@gmail.com>
# Copyright 2017-2018 Coop IT Easy SCRLfs <remy@gcoopiteasy.be>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

Loading…
Cancel
Save