summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets/data_export.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2018-03-02 10:04:57 +0100
committerNicolas Martinelli <nim-odoo@users.noreply.github.com>2018-03-05 08:42:11 +0100
commit4badf49ad0b5e3b269e725d1a0dd12a65ec68e48 (patch)
tree55d0e523f33515f507abe6401e44e183f697d967 /addons/web/static/src/js/widgets/data_export.js
parent566ce21d42338ca806f8961ae02f9576bf011569 (diff)
[FIX] pad, pad_project, note_pad: duplicate object
The duplication of a task crashes at the following: `content = myPad.getHtml(path).get('html', '')` The copy mechanism is quite cumbersome: - In `copy` method, generate an URL of a pad which doesn't exist since `object_id` is still undefined. - The `create` method somehow attempts to fill in the previously created pad thanks to `_set_pad_value`. The logic is made simpler. The pad URL field is set as `copy=False`, therefore the create mechanism will take care of handling the pad creation and its synchronization. opw-1818757
Diffstat (limited to 'addons/web/static/src/js/widgets/data_export.js')
0 files changed, 0 insertions, 0 deletions