diff options
| author | Joren Van Onder <jov@odoo.com> | 2015-07-02 11:43:49 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2015-07-23 13:56:07 +0200 |
| commit | b2eafca067b71f45864d543d0ebede37e2c25e26 (patch) | |
| tree | 9233c152c5a0a650e32aa3627a04f41bdf8c8384 /addons/project/web_planner_data.xml | |
| parent | c505f00c3e726369ce3fbc54d8a3cc625eda5764 (diff) | |
[REF] web_planner: refactor to make less brittle and reliant on layout
This introduces a new way to define web_planners. They now take the
following form:
<template id="project_planner">
<t t-call="web_planner.pages">
<t t-call="web_planner.category">
<t t-set="menu_categorytitle" t-value="'Prepare'"/>
<t t-set="menu_categoryclasses" t-value="'fa-flag-checkered'"/>
<t t-call="web_planner.page">
<t t-set="page_title" t-value="'Welcome'"/>
<t t-set="hide_mark_as_done" t-value="True"/>
<t t-set="hide_from_menu" t-value="True"/>
<!-- content here -->
</t>
</t>
</template>
The menu is not manually created anymore, it is automatically generated.
Pages do not have to be part of a category and can just be defined as
children of web_planner.pages. A page can have hide_mark_as_done and
hide_from_menu, these are optional and will both default to False when
omitted.
Diffstat (limited to 'addons/project/web_planner_data.xml')
0 files changed, 0 insertions, 0 deletions
