Skip to content

[18.0][MIG] web_responsive: Migration to 18.0 #3037

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

Open
wants to merge 220 commits into
base: 18.0
Choose a base branch
from

Conversation

kobros-tech
Copy link

No description provided.

@kobros-tech
Copy link
Author

The issue is inside web_pivot_computed_measure module tests.
I introduced a PR of a fix to the tests #3038

@chaule97
Copy link

Hi, I opened another PR #3057, welcome you review it

@kobros-tech kobros-tech force-pushed the 18.0-mig-web_responsive branch 3 times, most recently from ac1f548 to daaafd6 Compare January 24, 2025 08:55
@kobros-tech
Copy link
Author

@chienandalu
@CarlosRoca13

I referred to you in another PR that is a dependency for this PR tests

@CarlosRoca13
Copy link
Contributor

Please, note this pr #3069

@kobros-tech kobros-tech force-pushed the 18.0-mig-web_responsive branch 3 times, most recently from 804cb3f to 786da5e Compare January 27, 2025 21:29
lasley and others added 16 commits January 28, 2025 01:31
* 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.
@pedrobaeza
Copy link
Member

This migration still loses the preview display that is not opening automatically the attachments (for example in invoices), and that has the previous possibilities. Please restore that behavior.

@kobros-tech
Copy link
Author

This migration still loses the preview display that is not opening automatically the attachments (for example in invoices), and that has the previous possibilities. Please restore that behavior.

yes, its a bug here
I will work on it

@kobros-tech kobros-tech force-pushed the 18.0-mig-web_responsive branch from 85f2334 to 3d7aad1 Compare April 11, 2025 07:05
@kobros-tech
Copy link
Author

kobros-tech commented Apr 11, 2025

This migration still loses the preview display that is not opening automatically the attachments (for example in invoices), and that has the previous possibilities. Please restore that behavior.

There was an issue with scss, on my side I saw chatter is taking 90% of the page I am still seeing document but in the big view only.

please check again if you don't see the document try to minimize the fonts or maximize the resolution.

Screenshot from 2025-04-11 10-09-25

Screenshot from 2025-04-11 10-08-56

@chaule97
Copy link

Hi @kobros-tech , I have created refactor code PR kobros-tech#1 in your repo. Please review, merge and squash it

@etobella
Copy link
Member

@kobros-tech I made a basic functional test and everything looks great. What is missing?

@kobros-tech
Copy link
Author

@kobros-tech I made a basic functional test and everything looks great. What is missing?

@etobella
Thanks very much, I think nothing is missing after I compared my PR to another one.
I did changes requested by reviewers and merged some commits here as requested and merged in 17.0 too.

@kobros-tech kobros-tech force-pushed the 18.0-mig-web_responsive branch from 3d7aad1 to e49566d Compare April 17, 2025 13:28
@kobros-tech kobros-tech force-pushed the 18.0-mig-web_responsive branch from e49566d to 37d27dd Compare April 17, 2025 13:32
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.

Please avoid this ugly view if no icon defined:

imagen

And this is still not covering the requirement of not auto-showing attachment for example in invoices:

imagen

and you have to use the other preview "style" where you can maximize it. Why are you ignoring me on this?

@kobros-tech kobros-tech force-pushed the 18.0-mig-web_responsive branch from 1ff2104 to 37e6232 Compare April 17, 2025 16:24
@kobros-tech kobros-tech force-pushed the 18.0-mig-web_responsive branch from 37e6232 to 284a6c7 Compare April 17, 2025 16:31
@kobros-tech
Copy link
Author

@pedrobaeza

after I ran tests twice I confirm the timeout issue is solved by increasing the step_delay, reference:
https://github.com/odoo/odoo/blob/18.0/addons/im_livechat/tests/test_chatbot_form_ui.py#L42

PR:
#3158

@kobros-tech
Copy link
Author

@pedrobaeza
good idea to add a default icon similar to modules don't have icons.

but for the preview, if I didn't understand you or I did and having it fine.

as if I zoom out screen it pops up and if I zoom in the previow goes away, and I will record a video to show.

@kobros-tech
Copy link
Author

@pedrobaeza

I can't ignore you, but sometimes I misunderstand or unable to answer if I have a good answer.
I am sorry really.

@kobros-tech
Copy link
Author

Preview in invoices screen:

web_responsive_preview.mp4

@pedrobaeza
Copy link
Member

I already stated in #3057 (review) and here in #3037 (comment).

My initial comment with detailed explanation: #2405 (comment)

Extracted from there:

  1. Document viewer

    Odoo includes natively the possibility of viewing in an embedded popup PDF files, videos or images. On previous versions, as the community edition always put the chatter on the bottom, these documents were previewed full size, covering the contents and not letting you to work side by side.

    Selección_016

    web_responsive then included code for working on a more similar way than enterprise: putting the document viewer on the side, for easing the input for example on vendor bills, copying things side by side:

    Selección_017

    But it was also decided to do it in a more convenient way:

    • Don't opening by default the so considered main attachment by Odoo. This is not always what you want to do, and it covers the conversation (or move it to the bottom, being not consistent where to find it).
    • Allow to display this way any of the attachments, not only what they consider the main one.

    Odoo has now included these enterprises features in the community edition, but they use a different "document viewer" for the side view, and it still has the first mentioned flaw. So I think we need to tackle this in the OCA module. Possible options:

    1. Disable the "side viewer", and use the main document viewer in the same way as in previous versions.
    2. Don't move the chatter to bottom, don't open the side viewer in any case, opening it when clicking the attachments, and put a close X icon on the side viewer to "return" to the chatter.

See also #2745, and how it was added in 17 in #2795

@pedrobaeza
Copy link
Member

@kobros-tech I insist: the problem is the automatic display of that preview in the invoices. It should be disabled by default. We want the preview, but not automatic. Do you understand me?

@pedrobaeza
Copy link
Member

And that automatic preview is not using the same stuff:

imagen

@kobros-tech
Copy link
Author

let me understand this and see what I can do, at least to try.

@kobros-tech
Copy link
Author

@pedrobaeza

I did try odoo without web_responsive and with it.

I saw the preview is poping up automatically, and in case of clicking the attachment the big screen of it pops up.

If I catch your point, I am asked to disable the default one but keeping the function if I click on attachmen?

becaue of the pros of the one we see when cliking on attachment over the other auto one?

If I am correct ok, I will try.

@pedrobaeza
Copy link
Member

I am asked to disable the default one but keeping the function if I click on attachmen?

Yes. This is what we have as part of web_responsive module since a lot of versions ago, and what you have to keep migrating the module. It's not something new that is asked.

becaue of the pros of the one we see when cliking on attachment over the other auto one?

Yes, already explained in quotes, but summarizing:

  • Chatter visible without scrolling.
  • Maximize possibility.
  • Be able to see this way more than one attachment, not the main one.

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

Successfully merging this pull request may close these issues.