Skip to content

Commit e6fbd84

Browse files
committed
[MIG] web_responsive: Migrate to v12 and refactor
This migration includes a full refactoring to make this module more maintainable. Some things that have changed: - Removed external libraries. - Change Less for Scss. - Reduce ES and XML to the minimal required needs. - Implement as much features as possible with just Scss. - Use the new hotkeys system from Odoo v12. - Remove copyright from `__init__.py` files.
1 parent a8824cd commit e6fbd84

26 files changed

+561
-5621
lines changed

web_responsive/__init__.py

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
# Copyright 2018 Alexandre Díaz
2-
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
3-
41
from . import models

web_responsive/__manifest__.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
{
66
"name": "Web Responsive",
7-
"summary": "It provides a mobile compliant interface for Odoo Community "
8-
"web",
9-
"version": "11.0.2.0.0",
7+
"summary": "Responsive web client, community-supported",
8+
"version": "12.0.1.0.0",
109
"category": "Website",
11-
"website": "https://laslabs.com/",
10+
"website": "https://github.com/OCA/web",
1211
"author": "LasLabs, Tecnativa, Alexandre Díaz, "
1312
"Odoo Community Association (OCA)",
1413
"license": "LGPL-3",
@@ -18,12 +17,11 @@
1817
],
1918
"data": [
2019
'views/assets.xml',
21-
'views/web.xml',
2220
'views/inherited_view_users_form_simple_modif.xml',
21+
'views/web.xml',
2322
],
2423
'qweb': [
25-
'static/src/xml/app_drawer_menu_search.xml',
26-
'static/src/xml/form_view.xml',
24+
'static/src/xml/apps.xml',
2725
'static/src/xml/navbar.xml',
2826
],
2927
}

web_responsive/models/__init__.py

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
# Copyright 2018 Alexandre Díaz
2-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3-
41
from . import inherited_res_users

web_responsive/readme/DESCRIPTION.rst

+18-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
This module provides a mobile compliant interface for Odoo Community web.
1+
This module adds responsiveness to web backend.
22

3-
Features:
3+
Features for all devices:
4+
5+
* New navigation with an app drawer
6+
* Quick menu search from the app drawer
7+
8+
Features for mobile:
9+
10+
* App-specific submenus are shown on full screen when toggling them from the
11+
"hamburger" menu
12+
* View type picker dropdown displays confortably
13+
* Top app bar is always visible
14+
* Top control panel is hidden when scrolling down
15+
16+
Features for computers:
417

5-
* New navigation with an App drawer
618
* Keyboard shortcuts for easier navigation
7-
* Display kanban views for small screens if an action or field One2x
8-
* Set chatter side (Optional per user)
9-
* Quick search
19+
* Autofocus on search menu box when opening the drawer
20+
* Set chatter on the side of the screen, optional per user
21+
* Full width form sheets

web_responsive/readme/ROADMAP.rst

+4-22
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
Note: Data added to the footer ``support_branding`` is not shown while using
2-
this module.
3-
4-
* Provide full menu search feature instead of just App search
5-
* Drag drawer from left to open in mobile
6-
* Figure out how to test focus on hidden elements for keyboard nav tests
7-
* If you resize the window, body gets a wrong ``overflow: auto`` css property
8-
and you need to refresh your view or open/close the app drawer to fix that.
9-
* Override LESS styling to allow for responsive widget layouts
10-
* Adding ``oe_main_menu_navbar`` ID to the top navigation bar triggers some
11-
great styles, but also `JavaScript that causes issues on mobile
12-
<https://github.com/OCA/web/pull/446#issuecomment-254827880>`_
13-
* Sticky header and footer in list view only works on certain browsers:
14-
https://caniuse.com/#search=sticky (note that the used feature is in
15-
`thead`).
16-
* On Android (FireFox) - clicking the search icon does not
17-
focus the search input.
18-
* On Android (FireFox & Chrome) - clicking the search query input will
19-
show the on screen keyboard for a split second, but the App Drawer
20-
immediately closes and the keyboard closes with it.
21-
* Filter menu items completely on client-side, to make it smoother and allow
22-
users to filter on complete paths of menus and not only on the last item.
1+
* To view the full experience in a device, the page must be loaded with the
2+
device screen size. This means that, if you change the size of your browser,
3+
you should reload the web client to get the full experience for that
4+
new size. This is Odoo's own limitation.

0 commit comments

Comments
 (0)