summaryrefslogtreecommitdiff
path: root/addons/document/static/src/js/document.js
diff options
context:
space:
mode:
authorTejas Tank <tta@openerp.com>2012-10-25 13:08:34 +0530
committerTejas Tank <tta@openerp.com>2012-10-25 13:08:34 +0530
commitbef70dd63854791f3137ae4908f18889543c6f33 (patch)
tree4f2e7f02eafe536f3fb08337329b6927c9a88989 /addons/document/static/src/js/document.js
parent8031b99ad4cad6063812fd485080a3af736ac2dd (diff)
[FIX] Document name and google doc index.
bzr revid: tta@openerp.com-20121025073834-0tcjrqe8p7n3m2yx
Diffstat (limited to 'addons/document/static/src/js/document.js')
-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 e4bce2da76e..23f1375e8c8 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)
+ _.chain(attachments.reverse())
.groupBy(function(attachment) { return attachment.name})
.each(function(attachment){
if(attachment.length > 1)