Skip to content

Commit

Permalink
refactoring step
Browse files Browse the repository at this point in the history
  • Loading branch information
mymage committed Sep 10, 2022
1 parent 48c308f commit c169b35
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions web_menu/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a page for web app to manage different root
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
The menu is available to server_address:port/mobile
The menu is available to server_address:port/menu
Extend the view with dedicated button to your root.
File renamed without changes
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<template id="web_mobile_template" name="Mobile Menu Template">
<template id="web_menu_template" name="Menu Template">
<t t-call="website.layout">
<div id="menu" class="container">
<div class="row justify-content-center">
<h4>Mobile Menu</h4>
<h4>Menu</h4>
</div>
<div id="samle_route">
<div id="sample_route">
<!-- sample menu row -->
<hr/>
<div id="sample_route" class="row justify-content-center">
Expand All @@ -20,17 +20,17 @@
</template>

<!-- website page -->
<record id="web_mobile_page" model="website.page">
<field name="name">Mobile Menu</field>
<record id="web_menu_page" model="website.page">
<field name="name">Menu</field>
<field name="website_published">True</field>
<field name="url">/mobile</field>
<field name="view_id" ref="web_mobile_template"/>
<field name="url">/menu</field>
<field name="view_id" ref="web_menu_template"/>
</record>

<!-- website page menu -->
<record id="web_mobile_menu" model="website.menu">
<field name="name">Mobile Menu</field>
<field name="page_id" ref="web_mobile_page"/>
<record id="web_menu" model="website.menu">
<field name="name">Menu</field>
<field name="page_id" ref="web_menu_page"/>
<field name="parent_id" ref="website.main_menu"/>
<field name="sequence" type="int">80</field>
</record>
Expand Down
1 change: 0 additions & 1 deletion web_mobile_menu/readme/DESCRIPTION.rst

This file was deleted.

0 comments on commit c169b35

Please sign in to comment.