summaryrefslogtreecommitdiff
path: root/addons/document/static/src
diff options
context:
space:
mode:
authorChristophe Simonis <chs@openerp.com>2013-11-25 16:00:54 +0100
committerChristophe Simonis <chs@openerp.com>2013-11-25 16:00:54 +0100
commitbb1e256f5b24bb4fc4b64e1fa973f86a30e4bace (patch)
tree95f1de1c67b507b0d10786d04aa0f98bcd22243a /addons/document/static/src
parentf148061b9455e39d3b3e6f316a5c7d586e1aad88 (diff)
parent7baee2822180db919e6754f04c0fa9bc8aaafe92 (diff)
[MERGE] forward port of branch saas-2 up to revid 9010 dle@openerp.com-20131125143003-vjtzj1c5051pdnk3
bzr revid: chs@openerp.com-20131125150054-b135qshkx6icakgk
Diffstat (limited to 'addons/document/static/src')
-rw-r--r--addons/document/static/src/js/document.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/document/static/src/js/document.js b/addons/document/static/src/js/document.js
index 23f1375e8c8..e4bce2da76e 100644
--- a/addons/document/static/src/js/document.js
+++ b/addons/document/static/src/js/document.js
@@ -9,7 +9,7 @@ openerp.document = function (instance) {
on_attachments_loaded: function(attachments) {
//to display number in name if more then one attachment which has same name.
var self = this;
- _.chain(attachments.reverse())
+ _.chain(attachments)
.groupBy(function(attachment) { return attachment.name})
.each(function(attachment){
if(attachment.length > 1)