From 9807ff8a91bd81d4cff7a5def02d231f8514db59 Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Mon, 11 Apr 2016 11:51:10 +0200 Subject: [PATCH] [FIX] account: Financial Report not sorted the right way. Courtesy of be-cloud-js. PR #11485 --- addons/account/report/account_financial_report.py | 3 ++- doc/cla/corporate/be-cloud-be.md | 15 +++++++++++++++ doc/cla/individual/be-cloud-js.md | 11 +++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 doc/cla/corporate/be-cloud-be.md create mode 100644 doc/cla/individual/be-cloud-js.md diff --git a/addons/account/report/account_financial_report.py b/addons/account/report/account_financial_report.py index a4c64db640e..d06a2cc02b1 100644 --- a/addons/account/report/account_financial_report.py +++ b/addons/account/report/account_financial_report.py @@ -28,7 +28,8 @@ class account_financial_report(models.Model): res = self children = self.search([('parent_id', 'in', self.ids)], order='sequence ASC') if children: - res += children._get_children_by_order() + for child in children: + res += child._get_children_by_order() return res name = fields.Char('Report Name', required=True, translate=True) diff --git a/doc/cla/corporate/be-cloud-be.md b/doc/cla/corporate/be-cloud-be.md new file mode 100644 index 00000000000..61d687199a1 --- /dev/null +++ b/doc/cla/corporate/be-cloud-be.md @@ -0,0 +1,15 @@ +Belgium, 2016-02-06 + +be-cloud.be agrees to the terms of the Odoo Corporate Contributor License +Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this +declaration. + +Signed, + +Jerome Sonnet jerome.sonnet@be-cloud.be https://github.com/be-cloud-js + +List of contributors: + +Jerome Sonnet jerome.sonnet@be-cloud.be https://github.com/be-cloud-js \ No newline at end of file diff --git a/doc/cla/individual/be-cloud-js.md b/doc/cla/individual/be-cloud-js.md new file mode 100644 index 00000000000..3296ff2309a --- /dev/null +++ b/doc/cla/individual/be-cloud-js.md @@ -0,0 +1,11 @@ +Belgium, 2016-02-06 + +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, + +Jerome Sonnet jerome.sonnet@be-cloud.be https://github.com/be-cloud-js