diff options
| author | Hiral Bhavsar <hbh@odoo.com> | 2018-11-16 13:09:14 +0000 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2019-05-03 10:19:40 +0000 |
| commit | 132c0ad9bf18e34809653a0cb8ca871858f6035e (patch) | |
| tree | 5e037ed3d7e4bb4573cd0f3064bc22fb670ef534 /addons/mail/static/src/xml | |
| parent | fac99a901c1e062ba804b8c541a10e79ab4dae3a (diff) | |
[IMP] mail: allow to create record from activity view
In the activity view footer, it's now possible to create a new record
(and an associated activity). When clicking on the link, a 'SelectCreate'
dialog is opened and the activity is created when selecting a record.
Task 1894990
Diffstat (limited to 'addons/mail/static/src/xml')
| -rw-r--r-- | addons/mail/static/src/xml/activity_view.xml | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/addons/mail/static/src/xml/activity_view.xml b/addons/mail/static/src/xml/activity_view.xml index 0bbb2d5c3d5..2abada1486a 100644 --- a/addons/mail/static/src/xml/activity_view.xml +++ b/addons/mail/static/src/xml/activity_view.xml @@ -22,17 +22,25 @@ </td> </t> -<div t-name="ActivityView.nodata"> - <div class="o_view_nocontent" role="alert"> +<t t-name="mail.ActivityViewFooter"> + <tfoot> + <tr class="o_data_row"> + <td class="o_record_selector p-3"> + <span class="fa fa-plus pr-2"/><span>Schedule activity</span> + </td> + </tr> + </tfoot> +</t> + +<t t-name="mail.ActivityView"> + <div t-if="isEmpty" class="o_view_nocontent" role="alert"> <div class="o_nocontent_help"> <p class="o_view_nocontent_empty_folder"> No data to display - </p><p> - No activity scheduled. - Activities can be scheduled from the form view chatter. </p> </div> </div> -</div> + <table t-else="" class="table-bordered mb-5"/> +</t> </templates> |
