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

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

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

Conversation

chaule97
Copy link

No description provided.

lasley and others added 30 commits January 10, 2025 15:53
* 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
CarlosRoca13 and others added 6 commits January 10, 2025 15:53
Before this change when trying to access web using superuser the web
interface is not charged.

By doing this change is all working normally.

Steps to reproduce the problem:

1. Log in
2. Go to web/become
Related to odoo/odoo@cac20c5

Now it is necessary to have an ir.actions.act_window record
Add support to serve menu icon in image URL format rather than base64.

It can take advantanges from browser caching and Nginx proxy.

Signed-off-by: Fai <[email protected]>
@OCA-git-bot
Copy link
Contributor

Hi @yajo, @rafaelbn,
some modules you are maintaining are being modified, check this out!

@chaule97 chaule97 marked this pull request as draft January 14, 2025 05:25
@chaule97 chaule97 force-pushed the 18.0-mig-web_responsive branch 2 times, most recently from d4943d2 to 6b88ac8 Compare January 14, 2025 08:22
@chaule97 chaule97 force-pushed the 18.0-mig-web_responsive branch 8 times, most recently from b390c4c to a6c6a73 Compare January 15, 2025 02:49
Copy link
Member

@HviorForgeFlow HviorForgeFlow left a comment

Choose a reason for hiding this comment

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

Functional review.

Click on an entry that has been found from a search in the menu link is broken. It uses old way action_id=123 but keeps the /odoo/action-321 old (for instance http://localhost:8069/odoo/action-123?action_id=321&menu_id=456). I guess that the href should be build with the new reference.

@chaule97 chaule97 force-pushed the 18.0-mig-web_responsive branch from a6c6a73 to 1906d56 Compare January 20, 2025 03:02
@chaule97
Copy link
Author

Functional review.

Click on an entry that has been found from a search in the menu link is broken. It uses old way action_id=123 but keeps the /odoo/action-321 old (for instance http://localhost:8069/odoo/action-123?action_id=321&menu_id=456). I guess that the href should be build with the new reference.

Thanks, I have fixed it

Copy link

@kobros-tech kobros-tech left a comment

Choose a reason for hiding this comment

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

there is a test file and you removed it too, here is the content:

`* Copyright 2021 ITerra - Sergey Shebanin

  • License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
    odoo.define("web_responsive.test_patch", function (require) {
    "use strict";

    const utils = require("web_tour.TourStepUtils");

    /* Make base odoo JS tests working */
    utils.include({
    showAppsMenuItem() {
    return {
    edition: "community",
    trigger: ".o_navbar_apps_menu",
    auto: true,
    position: "bottom",
    };
    },
    });
    });`

web_responsive/static/tests/test_patch.js

could you explain, please?

from odoo.tests import HttpCase


class TestIrHttp(HttpCase):

Choose a reason for hiding this comment

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

Is there a reason to remove this tag:
@tagged("-at_install", "post_install")

@SplashS
Copy link
Contributor

SplashS commented Jan 23, 2025

web_responsive/static/tests/test_patch.js

This file was necessary for testing engine in general.
Odoo testing framework in part of browser integration tests (post_install) make clicks.
And it also wants to click on the main menu.
But web_responsive module changes the main menu and the way to click it programmatically.
This file allowed post_install tests to work.

@pedrobaeza
Copy link
Member

There's already #3037 doing the migration.

@chaule97 chaule97 marked this pull request as ready for review February 4, 2025 03:08
@chaule97
Copy link
Author

chaule97 commented Feb 4, 2025

web_responsive/static/tests/test_patch.js

This file was necessary for testing engine in general. Odoo testing framework in part of browser integration tests (post_install) make clicks. And it also wants to click on the main menu. But web_responsive module changes the main menu and the way to click it programmatically. This file allowed post_install tests to work.

I don't think so. in module web_pivot_computed_measure, it has click o_navbar_apps_menu step, but github ci test still passes. I think we don't need it anymore because of this css

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.