web
web copied to clipboard
[16.0][IMP] web_timeline: Follow create/edit/delete attrs
In addition to security rights (was already implemented), now follow create="0"
/ edit="0"
/ delete="0"
attributes one can set onto the timeline
tag, same as in other Odoo views.
I had to add a specific event for read-only double-clicks to distinguish with update ones (read-only double-clicks have item ID only, updates have more item info in a dict).
To test on runboat, open the ir.cron timeline view and play with:
-
create="0"
/ 1 -
edit="0"
/ 1 -
delete="0"
/ 1 -
event_open_popup="0"
/ 1