diff options
| author | Christophe Matthieu <chm@odoo.com> | 2017-03-06 10:41:02 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | 09731b7860ca1c0c3b4d9c85db01e31b900e2ee0 (patch) | |
| tree | a3ed92e053ebb5b8eda7382c390ceaa2bcd3fa8b /doc | |
| parent | bf320d2a0dd5adf56c27bab3fae59d2536f54f00 (diff) | |
[IMP] calendar change view grammar.
* Remove filter tag
* Use color attribute on the view who add a filter/legend
* Filter is automatically added when 'avatar_field' option is used on a
field tag, and the default template display the avatar.
* Can overwrite the template (add tag template who contains qweb with
<t t-name="calendar-box">...</t>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/howtos/backend/exercise-calendar | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/howtos/backend/exercise-calendar b/doc/howtos/backend/exercise-calendar index a605016ae3b..0c62fa8ce98 100644 --- a/doc/howtos/backend/exercise-calendar +++ b/doc/howtos/backend/exercise-calendar @@ -64,9 +64,8 @@ diff --git a/openacademy/views/openacademy.xml b/openacademy/views/openacademy.x + <field name="name">session.calendar</field> + <field name="model">openacademy.session</field> + <field name="arch" type="xml"> -+ <calendar string="Session Calendar" date_start="start_date" date_stop="end_date"> ++ <calendar string="Session Calendar" date_start="start_date" date_stop="end_date" color="instructor_id"> + <field name="name"/> -+ <filter name="instructor_id" color="True"/> + </calendar> + </field> + </record> |
