mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-20 10:16:45 -06:00
[IMP] also sort directories
This commit is contained in:
parent
4f4ddfaabc
commit
4e938570a9
@ -57,6 +57,9 @@ openerp.document_choose_directory = function(instance)
|
|||||||
_.chain(attachments)
|
_.chain(attachments)
|
||||||
.groupBy(
|
.groupBy(
|
||||||
function(a) { return a.parent_id[0] })
|
function(a) { return a.parent_id[0] })
|
||||||
|
.sortBy(function(attachments) {
|
||||||
|
return attachments[0].parent_id[1];
|
||||||
|
})
|
||||||
.each(
|
.each(
|
||||||
function(group)
|
function(group)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user