diff options
| author | Christophe Simonis <chs@openerp.com> | 2013-11-04 12:05:12 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@openerp.com> | 2013-11-04 12:05:12 +0100 |
| commit | dda51decc897d56c8171056450b947e008da3b64 (patch) | |
| tree | 53ba7098296ee8bd6321b56ddc745b302ed12082 /addons/document/static/src | |
| parent | 014fa283793cd5674193d679bcf9438b9d033906 (diff) | |
[FIX] document: correct numbering of attachments with the same name
bzr revid: chs@openerp.com-20131104110512-an7qpur1zckpgu7z
Diffstat (limited to 'addons/document/static/src')
| -rw-r--r-- | addons/document/static/src/js/document.js | 2 |
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) |
