Skip to Content
Menu
This question has been flagged

Hello,

I wanted to enable attachments drag-and-drop support in Odoo (v10) and found https://github.com/leblanc-simon/odoo-attachment-dragdrop . I installed it in Odoo. But when Odoo loads I get error in browser "openerp is not defined". This is first problem . The second problem I don't understand where to drag and drop the file.

Avatar
Discard
Author

I've looked at the source (https://github.com/leblanc-simon/odoo-attachment-dragdrop/blob/master/static/src/js/attachment_dragdrop.js) as there where no docs on how to use that addon. But didn't quite understand where to drop the draged object.

Did you fix the error? Maybe it is self-explanatory, when the module works properly.

Best Answer

Did you delete the legacy manifest file __openerp__.py before installing? Check this: https://www.odoo.com/documentation/10.0/reference/module.html    

If this is not the cause, please provide the log entries.

When properly installed, there should be an indication shown about where to drop the attachment (as you can see from the code line

main.setAttribute('data-dragover-text'openerp._t('Drop files here to add it'));

).

Avatar
Discard
Related Posts Replies Views Activity
1
Jan 21
5649
0
Aug 23
194
1
Sep 22
4168
1
Feb 22
1734
1
Dec 20
1698