[FIX] account: Financial Report not sorted the right way. Courtesy of be-cloud-js. PR #11485
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user