Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] web_responsive: Migration to 17.0 #2684

Merged
merged 192 commits into from
Jan 19, 2024

Conversation

TesaLazarenko
Copy link
Contributor

@TesaLazarenko TesaLazarenko commented Nov 24, 2023

  • change the background of the app menu
  • change search list items
  • fix sticky buttons panel
  • Readme / Description with screenshots
  • fix app search

lasley and others added 30 commits November 17, 2023 00:37
* 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.
* 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
@TesaLazarenko TesaLazarenko force-pushed the 17.0-mig-web_responsive branch 5 times, most recently from 086f150 to 7f9beda Compare January 6, 2024 03:18
Copy link
Contributor

@AaronHForgeFlow AaronHForgeFlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functional tests look good on my side

@TesaLazarenko
Copy link
Contributor Author

TesaLazarenko commented Jan 9, 2024

now the search works as before and by default, but you can change it in the menu configuration.
Click
image.

image

@traviswaelbro
Copy link

I'm getting this error in my testing – on Mac with both Firefox and Chrome. There isn't any way to select a menu using the keyboard arrow keys then enter is the usual way). Can't change focus with tab or anything else that I could find. It can only launch the menu with a mouse click.

  1. Open the menu picker screen (Cmd-H)
  2. Type in text to any filter for a menu
  3. Click Enter to try to open the menu
  4. Error is raised
TypeError: element.querySelector(...) is null
    _onKeyDown@http://localhost:10102/web/assets/1/a9f463f/web.assets_web.min.js:16604:738
    mainEventHandler@http://localhost:10102/web/assets/1/a9f463f/web.assets_web.min.js:1552:77
    listener@http://localhost:10102/web/assets/1/a9f463f/web.assets_web.min.js:726:15

image

@TesaLazarenko
Copy link
Contributor Author

I'm getting this error in my testing...

Thanks for the detailed description, I will check and make a fix

@TesaLazarenko
Copy link
Contributor Author

I'm getting this error in my testing – on Mac with both Firefox and Chrome. ...

Done

@pedrobaeza
Copy link
Member

Hi, @LazarusUA, thanks for the changes. I'm testing it in runboat, and it seems it still doesn't work as it was in v16-. If I type "invoicustominv", I got the menu Invoicing/Customers/Invoices on the search (using parts of the full menu path). Now I'm not getting it. That's the idea of keeping the old menu search. Right now, we are getting the same features as the other menu search.

@Maurice67205
Copy link

Hi all,
I just tested the module web_responsive and i get the following error
2024-01-16 12:48:33,656 10165 INFO elena werkzeug: 127.0.0.1 - - [16/Jan/2024 12:48:33] "GET /web HTTP/1.1" 200 - 88 0.022 0.729
2024-01-16 12:48:34,711 10165 INFO elena werkzeug: 127.0.0.1 - - [16/Jan/2024 12:48:34] "GET /web/service-worker.js HTTP/1.1" 200 - 1 0.001 0.025
2024-01-16 12:48:34,731 10165 INFO elena odoo.addons.base.models.assetsbundle: Generating a new asset bundle attachment /web/assets/1870eb4/web.assets_web.min.css (id:201)
2024-01-16 12:48:34,731 10165 INFO elena odoo.addons.base.models.assetsbundle: Deleting attachments [200] (matching /web/assets/_______/web.assets_web.min.css) because it was replaced with /web/assets/1870eb4/web.assets_web.min.css
2024-01-16 12:48:34,738 10165 INFO elena werkzeug: 127.0.0.1 - - [16/Jan/2024 12:48:34] "GET /web/assets/1870eb4/web.assets_web.min.css HTTP/1.1" 200 - 17 0.020 1.047

2024-01-16 12:48:34,980 10165 ERROR elena odoo.addons.web.controllers.binary: Impossible de créer 'web_responsive.None' car le modèle à hériter 'web.Legacy.ControlPanel' est introuvable.

2024-01-16 12:48:34,980 10165 INFO elena werkzeug: 127.0.0.1 - - [16/Jan/2024 12:48:34] "GET /web/assets/cc4228f/web.assets_web.min.js HTTP/1.1" 404 - 4 0.004 1.304
2024-01-16 12:48:35,996 10165 INFO elena werkzeug: 127.0.0.1 - - [16/Jan/2024 12:48:35] "GET /web/service-worker.js HTTP/1.1" 200 - 1 0.001 0.003

Regards

Maurice

@traviswaelbro
Copy link

I'm getting this error in my testing – on Mac with both Firefox and Chrome. ...

Done

I can confirm this fixes what I was seeing. Thanks for the quick update!

@Ramibha
Copy link

Ramibha commented Jan 19, 2024

Hello ,

Upon installing and attempting to perform a database backup, followed by a restoration and login, I encountered an issue where only a white screen appeared. Upon reviewing the logs, I get the following error:

2024-01-19 08:32:34,644 4930 INFO 17_1 odoo.addons.base.models.assetsbundle: Generating a new asset bundle attachment /web/assets/9d93625/web.assets_web.min.css (id:127452)
2024-01-19 08:32:34,645 4930 INFO 17_1 odoo.addons.base.models.assetsbundle: Deleting attachments [118079] (matching /web/assets/_______/web.assets_web.min.css) because it was replaced with /web/assets/9d93625/web.assets_web.min.css
2024-01-19 08:32:34,666 4930 ERROR 17_1 odoo.addons.web.controllers.binary: Element '' cannot be located in parent view
2024-01-19 08:32:34,666 4930 INFO 17_1 werkzeug: 127.0.0.1 - - [19/Jan/2024 08:32:34] "GET /web/assets/716cb07/web.assets_web.min.js HTTP/1.1" 404 - 20 0.011 0.969
2024-01-19 08:32:34,683 4930 INFO 17_1 werkzeug: 127.0.0.1 - - [19/Jan/2024 08:32:34] "GET /web/assets/9d93625/web.assets_web.min.css HTTP/1.1" 200 - 30 0.067 0.930

thank you for your efforts !

@TesaLazarenko
Copy link
Contributor Author

Hi, @LazarusUA, thanks for the changes. I'm testing it in runboat, and it seems it still doesn't work as it was in v16-. ...

I'll try to check it later on version 16, because at the moment I returned the search code as it was before.
Perhaps I didn't see the changes that were there at 16.

@jvbp
Copy link

jvbp commented Jan 19, 2024

Hello ,

Upon installing and attempting to perform a database backup, followed by a restoration and login, I encountered an issue where only a white screen appeared. Upon reviewing the logs, I get the following error:

2024-01-19 08:32:34,644 4930 INFO 17_1 odoo.addons.base.models.assetsbundle: Generating a new asset bundle attachment /web/assets/9d93625/web.assets_web.min.css (id:127452) 2024-01-19 08:32:34,645 4930 INFO 17_1 odoo.addons.base.models.assetsbundle: Deleting attachments [118079] (matching /web/assets/_______/web.assets_web.min.css) because it was replaced with /web/assets/9d93625/web.assets_web.min.css 2024-01-19 08:32:34,666 4930 ERROR 17_1 odoo.addons.web.controllers.binary: Element '' cannot be located in parent view 2024-01-19 08:32:34,666 4930 INFO 17_1 werkzeug: 127.0.0.1 - - [19/Jan/2024 08:32:34] "GET /web/assets/716cb07/web.assets_web.min.js HTTP/1.1" 404 - 20 0.011 0.969 2024-01-19 08:32:34,683 4930 INFO 17_1 werkzeug: 127.0.0.1 - - [19/Jan/2024 08:32:34] "GET /web/assets/9d93625/web.assets_web.min.css HTTP/1.1" 200 - 30 0.067 0.930

thank you for your efforts !

The crash is caused by this Odoo change:
image

So removing this xpath from chatter.xml in OCA web_responsive result in no error:

image

Regards

@TesaLazarenko
Copy link
Contributor Author

TesaLazarenko commented Jan 19, 2024

Hi, @LazarusUA, thanks for the changes. I'm testing it in runboat, and it seems it still doesn't work as it was in v16-. ...

I'll try to check it later on version 16, because at the moment I returned the search code as it was before. Perhaps I didn't see the changes that were there at 16.

I just took a quick look and saw that the method (fuzzyLookup) that the old search used now works a little differently in version 17. When I have time, I will test how big the difference is now. Then maybe I will drag the algorithm from version 16

@TesaLazarenko
Copy link
Contributor Author

The crash is caused by this Odoo change: image

So removing this xpath from chatter.xml in OCA web_responsive result in no error:

ok, I'll take that into account, because sometimes odoo changes the xml structure and new releases may have similar problems

@TesaLazarenko
Copy link
Contributor Author

@pedrobaeza I now believe that I have completely returned the old search.

I also fixed the problems mentioned earlier. Tested locally on odoo:17.0-20240119

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working! Thanks for all your efforts and patience

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 17.0-ocabot-merge-pr-2684-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 6309011 into OCA:17.0 Jan 19, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at dc9d457. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.