Browse Source

[FIX] emc_wsite_portal: Show followed invoices

The issue was that the portal shows all the release capital request that
are followed by the user (generally because, it's him that that accepted
the request). The page should only show the capital request of that the
user owns.
pull/1/head
Rémy Taymans 6 years ago
parent
commit
fd06fd1555
  1. 4
      easy_my_coop_website_portal/controllers/main.py

4
easy_my_coop_website_portal/controllers/main.py

@ -42,7 +42,7 @@ class CooperatorWebsiteAccount(WebsiteAccount):
invoice_mgr = request.env['account.invoice']
capital_request_count = invoice_mgr.search_count([
('message_partner_ids', 'in',
('partner_id', 'in',
[partner.commercial_partner_id.id]),
('state', 'in', ['open', 'paid', 'cancelled']),
# Get only the release capital request
@ -69,7 +69,7 @@ class CooperatorWebsiteAccount(WebsiteAccount):
invoice_mgr = request.env['account.invoice']
domain = [
('message_partner_ids', 'in',
('partner_id', 'in',
[partner.commercial_partner_id.id]),
('state', 'in', ['open', 'paid', 'cancelled']),
# Get only the release capital request

Loading…
Cancel
Save