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_theme_classic #2660

Merged
merged 15 commits into from
May 18, 2024
Merged

Conversation

legalsylvain
Copy link
Contributor

@legalsylvain legalsylvain commented Nov 7, 2023

Quite simple migration from 16.0 to 17.0

  • add more specific css rule, using .o_form_view
  • remove css rules for search view, because there are now native in Odoo.

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Nov 7, 2023
@legalsylvain
Copy link
Contributor Author

/ocabot migration web_theme_classic

@OCA-git-bot OCA-git-bot mentioned this pull request Nov 7, 2023
15 tasks
@OCA OCA deleted a comment from OCA-git-bot Nov 7, 2023
@OCA OCA deleted a comment from OCA-git-bot Nov 7, 2023
@legalsylvain legalsylvain marked this pull request as ready for review November 7, 2023 22:15
@legalsylvain
Copy link
Contributor Author

Hi @sbidoul. So I made my first PR on 17.0 branch.

  • CI (pre-commit + test) looks OK 🆗
  • generation of pyproject.toml file 🆗
  • not generation of setup folder 🆗
  • runboat : not available 👎

Note :
@yajo, @pedrobaeza, @sbidoul
as previously said here, I really think I'll dislike the fact that each commit comes with a modification of two files (readme.rst and static/description/index.html). This is generating useless extra diff, and make review harder. see extra noice here : 296da50

@sbidoul
Copy link
Member

sbidoul commented Nov 8, 2023

@legalsylvain runboat is up, now.

@francesco-ooops
Copy link

@sbidoul shouldn't readme files be converted in md for v17?

cc @TumbaoJu @lfreeke

@sbidoul
Copy link
Member

sbidoul commented Nov 8, 2023 via email

@francesco-ooops
Copy link

@sbidoul yes, let's make the change happen :)

Comment on lines 15 to 21
**Without this module**

.. figure:: ../static/description/product_template_form_without_module.png

**With this module**

.. figure:: ../static/description/product_template_form_with_module.png

Choose a reason for hiding this comment

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

Screenshots should be updated. Also I think the button part has been addressed already:

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, thanks !

@sbidoul
Copy link
Member

sbidoul commented Nov 8, 2023

The PR to convert fragments to markdown in pre-commit is OCA/oca-addons-repo-template#228

@legalsylvain legalsylvain force-pushed the 17.0-mig-web_theme_classic branch 2 times, most recently from f0dddde to 60ad4e9 Compare November 8, 2023 16:21
@guestisp
Copy link

AWESOME !!! And working properly on v17.

Two small suggestions: lighter background (#f4f4f4 ?) for mandatory fields and a little bit of left/right padding on fields (ie 4px?)

From this:
image

To this:
image

@legalsylvain legalsylvain force-pushed the 17.0-mig-web_theme_classic branch 2 times, most recently from 4fec72d to 7f13564 Compare November 15, 2023 22:59
@legalsylvain
Copy link
Contributor Author

@legalsylvain runboat is up, now.

Thanks !

The PR to convert fragments to markdown in pre-commit is OCA/oca-addons-repo-template#228

thanks @sbidoul. works great.

hi @guestisp :
Thanks for your review.

Two small suggestions: lighter background (#f4f4f4 ?) for mandatory fields

I'm not sure. In a hand, I like your proposal, but in the other hand it is a matter of taste, and users have been accustomed to this color for many years. What do you think ? (I'm OK with moving in your direction.)

and a little bit of left/right padding on fields (ie 4px?)

Indeed. good proposal.

could you make a PR against my branch for the second point, (and eventually the first one ?)

Thanks !

@guestisp
Copy link

I'm not sure. In a hand, I like your proposal, but in the other hand it is a matter of taste, and users have been accustomed to this color for many years. What do you think ? (I'm OK with moving in your direction.)

The rationale is simple: 9 times to 10, grey fields are disabled. At first sight when i've installed this addon, i've thought that there grey fields was the disabled one in the form. But they are editable, and looking at the css class, they are required filed. So, a very light grey is better than a dark grey. But even better would be to change the color at all (light yellow? light green? light-something-but-not-grey?)

It's just my two cent as a fresh Odoo user, nothing more. A simple suggestion.

could you make a PR against my branch for the second point, (and eventually the first one ?)

Yup!

@guestisp
Copy link

what about white fields but with purple (odoo purple) borders for the required fields ?

@francesco-ooops
Copy link

@guestisp what about making it configurable?

@legalsylvain
Copy link
Contributor Author

Hi

  • regarding the required fields, it looks like there is no consensus, and make it configurable add a very big layer of complexity. So, I propose to keep it as it, as for the moment, the module copy the old behaviour of Odoo < 15.0.

  • For the left/right padding on fields, I think it's consensual.

@guestisp
Copy link

@guestisp what about making it configurable?

that's not easy......

@guestisp
Copy link

there is an issue with dark mode. The grey fields on dark mode are .... terrible:
image

before doing a PR, do you know if there is a css class added somewere that i can use to detect the dark mode ? Because that gray has to be changed, in dark mode.

(if I saw properly, there isn't any class to use as selector, the css file is replaced totally, so, how can I check for dark mode inside the scss file?)

@legalsylvain
Copy link
Contributor Author

before doing a PR, do you know if there is a css class added somewere that i can use to detect the dark mode ? Because that gray has to be changed, in dark mode.

I guess you talk about the EE module. If yes, I don't have access to EE, so I can't help you. But you can take a look on the code, if you can read it.

regards.

@guestisp
Copy link

guestisp commented Nov 17, 2023

not sure if dark mode is only available in Enterprise. i have to check.

and i have to find a way to set the background color variable only if not already defined, based on official docs [1], the scss for dark mode is loaded first, followed by everything else, so if the background was set in dark mode scss, following files should not redefine the var

[1] https://www.odoo.com/documentation/17.0/developer/reference/user_interface/scss_inheritance.html

@legalsylvain legalsylvain force-pushed the 17.0-mig-web_theme_classic branch 2 times, most recently from 7f0fd88 to 50ccde4 Compare November 17, 2023 09:30
@guestisp
Copy link

  • For the left/right padding on fields, I think it's consensual.

grap#2

@legalsylvain legalsylvain force-pushed the 17.0-mig-web_theme_classic branch 2 times, most recently from f48bb86 to 9a5bc69 Compare November 18, 2023 22:56
Copy link
Contributor

@remi-filament remi-filament left a comment

Choose a reason for hiding this comment

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

Thanks @legalsylvain for porting this module.
1 minor comment related to XML tag not necessary anymore in index.html raising a WARNING during installation.
Apart from this, 👍

web_theme_classic/static/description/index.html Outdated Show resolved Hide resolved
@legalsylvain
Copy link
Contributor Author

/ocabot rebase

@remi-filament : thanks for your patch. Is it now ok ?

thanks !

@OCA-git-bot

This comment was marked as outdated.

Copy link
Sponsor Contributor

@celm1990 celm1990 left a comment

Choose a reason for hiding this comment

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

LGTM tested functionally

@legalsylvain
Copy link
Contributor Author

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit 27c8142 into OCA:17.0 May 18, 2024
5 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 768e23c. 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.

None yet

9 participants