Browse Source

[PEP8] fix pep8

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

13
easy_my_coop/models/partner.py

@ -29,11 +29,12 @@ class ResPartner(models.Model):
# price_total is in the company currency # price_total is in the company currency
all_partners_and_children[partner] = self.search([('id', 'child_of', partner.id)]).ids all_partners_and_children[partner] = self.search([('id', 'child_of', partner.id)]).ids
all_partner_ids += all_partners_and_children[partner] 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 # generate where clause to include multicompany rules
where_query = account_invoice_report._where_calc([ where_query = account_invoice_report._where_calc([
@ -103,7 +104,7 @@ class ResPartner(models.Model):
help="Check this box if this cooperator" help="Check this box if this cooperator"
" is an effective member.") " is an effective member.")
coop_candidate = fields.Boolean(string="Cooperator candidate", coop_candidate = fields.Boolean(string="Cooperator candidate",
compute="_compute_coop_candidate",
compute="_compute_coop_candidate",
store=True, store=True,
readonly=True) readonly=True)
old_member = fields.Boolean(string='Old cooperator', old_member = fields.Boolean(string='Old cooperator',

3
easy_my_coop_website_taxshelter/controllers/main.py

@ -1,7 +1,6 @@
# -*- coding: utf-8 -*- # -*- 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). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

Loading…
Cancel
Save