Skip to content
Snippets Groups Projects
Commit 40d4cdd3 authored by Carlos Dauden's avatar Carlos Dauden Committed by Christophe Matthieu
Browse files

[FIX] account: Field total_invoiced in res.partner doesn't include archived children

parent d329b946
Branches
Tags
No related merge requests found
......@@ -296,7 +296,7 @@ class ResPartner(models.Model):
all_partner_ids = []
for partner in self:
# 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.with_context(active_test=False).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
......
Spain, 2015-05-28
I hereby agree to the terms of the Odoo Individual Contributor License Agreement v1.0.
I declare that I am authorized and able to make this agreement and sign this declaration.
Signed,
Carlos Dauden carlos.dauden@tecnativa.com https://github.com/carlosdauden
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment