projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
014fa28
)
[FIX] document: correct numbering of attachments with the same name
author
Christophe Simonis
<chs@openerp.com>
Mon, 4 Nov 2013 11:05:12 +0000
(12:05 +0100)
committer
Christophe Simonis
<chs@openerp.com>
Mon, 4 Nov 2013 11:05:12 +0000
(12:05 +0100)
bzr revid: chs@openerp.com-
20131104110512
-an7qpur1zckpgu7z
addons/document/static/src/js/document.js
patch
|
blob
|
history
diff --git
a/addons/document/static/src/js/document.js
b/addons/document/static/src/js/document.js
index
23f1375
..
e4bce2d
100644
(file)
--- 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)