diff options
| author | Rohan Patel <rop@odoo.com> | 2017-03-03 16:30:37 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2017-03-03 16:57:06 +0100 |
| commit | 79597a2b84c7ffab18f2c7b4d9015eac97e45707 (patch) | |
| tree | af578f5e3ba7856fcb001cf5dfa2b6412c7b7429 /addons/website/static/src/xml/website.backend.xml | |
| parent | 47b532638e82db78a7b9a4d4fb437a1fa29903e6 (diff) | |
[REF] website: merge Website and Website Admin menu items
This commit merge the two website menu items in order to ease user flow
inside Odoo. When clicking on the Website item a server action is called
that decides to redirect the user either to the dashboard if the user is
an admin or a website publisher, either to the website for other people.
Overriding this method allows to define a specific behavior. Future commit
will also redirect sales people to the website dashboard.
Dashboard itself is customized to add a header used to display a website
button. It will be used in future commits to add other new stuff to the
dashboard.
Diffstat (limited to 'addons/website/static/src/xml/website.backend.xml')
| -rw-r--r-- | addons/website/static/src/xml/website.backend.xml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/addons/website/static/src/xml/website.backend.xml b/addons/website/static/src/xml/website.backend.xml index 413c3d35631..992ffc5d821 100644 --- a/addons/website/static/src/xml/website.backend.xml +++ b/addons/website/static/src/xml/website.backend.xml @@ -8,6 +8,20 @@ <t t-name="website.WebsiteDashboardMain"> <div class="o_dashboards"> <div class="container-fluid o_website_dashboard"> + <t t-call="website.dashboard_header"/> + </div> + </div> + </t> + + <t t-name="website.dashboard_header"> + <div class="row o_dashboard_common"> + <div class="o_box"> + <a href="#" class="o_box_item o_dashboard_action" name="website.action_website" title="Go to Website"> + <div class="o_inner_box o_primary"> + <i class="fa fa-globe fa-3x"></i><br/> + Go to Website + </div> + </a> </div> </div> </t> |
