summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.editor.xml
diff options
context:
space:
mode:
authorjem-odoo <jem@openerp.com>2018-12-11 15:12:52 +0000
committerjem-odoo <jem@openerp.com>2019-01-17 13:27:04 +0000
commit295b47a4808d9a78bf993c4211ccb5f4eb498818 (patch)
tree1625090da83913ff4273495374585d8263e2ea34 /addons/website/static/src/xml/website.editor.xml
parent53faa6206f93e6b21a7781445f8ba78336d375e9 (diff)
[REF] mail: factorize activity 'mark as done' action
The purpose of this commit is to factorize the common behavior of marking an activity as done, which means delete it and create its forced next activities. We need a few entry points (for wizard button, for rpc calls from webclient), so instead of rewritting every implementation, we make them use the same new private method. Otherwise, adding a new way to mark an acitivity as done (by uploading a file, for instance), we gonna need to write quite similar method that the existing ones. Unfortunately, in the private implementation of `_action_done`, checking if some activities need to have their force next ones created cost one more query. As this refectoring make the activity lifecycle robust, we can accept this (the old version might be consider as false as we can mark an activity as done without creating its forced next activities). Task-1915004
Diffstat (limited to 'addons/website/static/src/xml/website.editor.xml')
0 files changed, 0 insertions, 0 deletions