diff options
| author | Hiral Bhavsar <hbh@odoo.com> | 2019-02-04 06:18:08 +0000 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2019-05-03 10:19:40 +0000 |
| commit | b2de618f9ff9969ff0644f3be10752f23d9738dc (patch) | |
| tree | a7f54bb16273f3b626a96d363e0f54bf19bb4ba3 /odoo/models.py | |
| parent | b29d4da037fbf73717cccdfcdf76d96e5b1b009b (diff) | |
[IMP] base,mail: allow to customize the activity view
The activity view has been greatly improved to allow to customize it
more easily. It works quite similarly to the kanban view, defining
`<field>` tags at the top and using these fields in the `<template>`
section. The template name used to define the activity cards is
`activity-box`.
Note that these activity cards are rendered using `KanbanRecord` widget
(this has implied that ActivityView inherits from `BasicView`).
Also note that the view validation has been moved in base to include the
common grammar.
Task 1894990
Diffstat (limited to 'odoo/models.py')
| -rw-r--r-- | odoo/models.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/odoo/models.py b/odoo/models.py index 8ebd58f4b1d..365e4d1a332 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -1269,15 +1269,6 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})): return E.tree(element, string=self._description) @api.model - def _get_default_activity_view(self): - """ Generates an empty activity view. - - :returns: a activity view as an lxml document - :rtype: etree._Element - """ - return E.activity(string=self._description) - - @api.model def _get_default_pivot_view(self): """ Generates an empty pivot view. |
