diff --git a/addons/account/models/partner.py b/addons/account/models/partner.py index eb423456436..803196c15c2 100644 --- a/addons/account/models/partner.py +++ b/addons/account/models/partner.py @@ -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 diff --git a/doc/cla/individual/carlosdauden.md b/doc/cla/individual/carlosdauden.md new file mode 100644 index 00000000000..a672fcaf988 --- /dev/null +++ b/doc/cla/individual/carlosdauden.md @@ -0,0 +1,9 @@ +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