Repository navigation
[20.0][MIG] web_responsive: Migration to 20.0 - #3679
Conversation
* Add Tecnativa as author * Remove untestable JS method * Rename to web_responsive
* Bump version * Change all openerp to odoo * Fix qunit suite injection * Remove jQuery require * Change to new selectors: * `oe_leftbar` to `o_sub_menu` * `oe_logo` to `o_sub_menu_logo` * `oe_footer` to `o_sub_menu_footer` * `oe_secondary_menus_container` to `o_sub_menu_content` * Add style to hide oe_footer instead of remove to not break `support_branding` * Add note in ReadMe explaining override of `support_branding` * Set top margin of app drawer title to 0 to fit v10 proportions * Fix notification badge positioning * Add o_web_client class to body to fix overlaps * Scroll control panel with page * Change navbar z-index to not be overlapped by buttons * Raise z-index on header to raise over buttons * Handle layered notifications via z-index * Remove `#` from navigation links HREF to prevent history littering
* Rebalance z-indexes to fix overlay issue while still providing notification support
* Bold titles for apps in the app-drawer * Remove z-index from Control Panel buttons, so it doesn't overlap the menu. * Better responsive menus * Move systray icons/menus out of the menu and up to the top bar. * Increase avatar size and visibility. * Other minor menu behavior fixes. * Changes to fit odoo variables * And a little margin adjust on navbar-right * Top menu always thick * Removed overflow:hidden!important from main.less * Local patch: prevent body overflow auto * Stop using `style=` on `<body>` * Fix jquery drawer in anticipation of: blivesta/drawer#36
On screens with less than 768px content is limited to 2 columns. On mobile field labels have their own line. Fix elements width for XS screens
Make image editing controls always available, instead of depending on resolution or hover.
Small makeup to make it look good in XS screens.
* [IMP] drawer-toggle * [IMP] Hitbox of close drawer-toggle * [IMP] Removed outline on menu item * [IMP] Logo positionings * [FIX] Try me on runbot button * [REM] Reversed outline change
* Change accesskey for `edit` in form view back to `e` to fix OCA#587
Before this patch, there was an incompatibility between this addon and l10n_es_toponyms, caused by the lack of wrapping of the special address field that was being added. Now layout works as expected in that case. In any other case, it seems sensible to wrap inputs so no more weird overflows happen and less chances of needing horizontal scrolling happen.
* Initial commit * Initial commit
* FIX hasclass * FIX views * [FIX] web_responsive: Syntax error in xpath
* Update to iScoll bleeding edge to fix OCA#741
* Add a call to the window resize method during init to fix OCA#773
flotho
left a comment
There was a problem hiding this comment.
Successfully tested on runboat.
Used theme Milk and Theme Community,
No weird colors IMHO
|
@pedrobaeza Thanks! Could you tell me which colors look weird (which screen, or a screenshot)? I'll fix them. |
3cb1113 to
b6098e8
Compare
|
Thanks for the migration! While testing this branch on 20.0 Community with Redirect to Home enabled, we hit two navigation issues (the first one exists on 19.0 too):
We solved both by backing the apps menu with a client action tagged
~70 lines in |
[20.0][MIG] web_responsive: Migration to 20.0 (13871, from OCA#3679)
b6098e8 to
0f6a3e1
Compare
|
Thanks @pedrobaeza , agreed. On mobile, core leaves the form sheet without background, so the grey webclient background showed between the white boxes. Now the sheet uses the same background as on desktop (only below 768px, larger screens unchanged):
While checking it I also found that, on phones, the text of the fields sat at the top of their box (the 35px min-height of this module vs the 25px inputs of Odoo 20), so I centered it in a separate commit. No field changes size:
I squashed the previous fix into the migration commit and left both changes in their own commits, so they are easy to review. Happy to squash them too if you prefer. |
|
Can you add this changes? #3748 |
Port the module to the Odoo 20 web client APIs, including Owl 3, QWeb, assets, and Hoot tests. Signed-off-by: Josuesp1620 <josuesp1620@gmail.com>
0f6a3e1 to
9395c5c
Compare
|
Thanks @pedrobaeza Those were the readonly fields: on mobile, core paints their box with the page background so they blend with it, so on the white sheet they showed up in grey. They now use the sheet background too (only below 768px):
I kept the chatter as it is, as you suggested, and squashed everything into the migration commit. |
|
Thanks @DucTruongKomit for the report! The fixed top offset came from this migration: in 19.0 the panel had no top and just stayed below the apps button. It now works the same way again, so it follows the navbar when the neutralize banner is shown, including when the banner wraps on two lines on narrow phones. Databases without the banner look exactly the same as before. |
pedrobaeza
left a comment
There was a problem hiding this comment.
Thanks for the work and the comprehensive review!
Let's merge this as the initial version, and if more things are discovered, they can be handled in later PRs.
/ocabot merge nobump
|
What a great day to merge this nice PR. Let's do it! |
|
This PR has the |
|
Congratulations, your PR was merged at b18056b. Thanks a lot for contributing to OCA. ❤️ |









Migration of
web_responsiveto 20.0.The module history from 19.0 is preserved following the OCA migration guide.
Main changes:
web._assets_primary_variablesas a list, QUnit tests replaced by Hoot tests inweb.assets_unit_testsValidation:
verified locally with
--test-tags /web_responsive(WebSuite / MobileWebSuite):4 passed on desktop and 4 passed on mobile
Closes #3675