Skip to content

[18.0] web_company_color: Add button to reset colors to default - #3448

Merged
OCA-git-bot merged 1 commit into
OCA:18.0from
javiermatos:add-reset-colors-to-default
Jun 12, 2026
Merged

[18.0] web_company_color: Add button to reset colors to default#3448
OCA-git-bot merged 1 commit into
OCA:18.0from
javiermatos:add-reset-colors-to-default

Conversation

@javiermatos

Copy link
Copy Markdown
Contributor

Implements a reset to default button for web_company_color, as once a color is set, the UI does not let you reset it in order to keep using the original Odoo colors.

@hbrunn hbrunn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

note you should call your PRs [$version] $module: $something, and also follow the Odoo git guidelines for the commit message

Comment thread web_company_color/models/res_company.py Outdated
@javiermatos javiermatos changed the title Add button to reset colors to default. [18.0] web_company_color: Add button to reset colors to default. Mar 23, 2026
@javiermatos
javiermatos force-pushed the add-reset-colors-to-default branch 3 times, most recently from 34e8906 to 2247c95 Compare March 23, 2026 23:12
@javiermatos

Copy link
Copy Markdown
Contributor Author

Thank you for your feedback @hbrunn , and for the link to the Odoo git guidelines. I have applied your changes and a few more that were required after it. I have written a better commit message for my last commit but not sure how to fix the rest.

@hbrunn hbrunn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks for the followup

not sure how to fix the rest.

what do yo mean here? You should squash your commits anyways, and you can rewrite the commit message while doing so: https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History

Comment thread web_company_color/models/res_company.py Outdated
Comment thread web_company_color/models/res_company.py Outdated
def write(self, values):
if not self.env.context.get("ignore_company_color", False):
fields_to_check = (
"company_colors",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

haha, I had already my changes from #3484 in mind when suggesting my change. Those two PRs will conflict now, if you could review that one to get it merged, you can rebase your code and remove this part

@OCA-git-bot OCA-git-bot added series:18.0 mod:web_company_color Module web_company_color labels Jun 9, 2026
@javiermatos
javiermatos requested a review from hbrunn June 9, 2026 15:01
@javiermatos javiermatos changed the title [18.0] web_company_color: Add button to reset colors to default. [18.0] web_company_color: Add button to reset colors to default Jun 9, 2026
@javiermatos
javiermatos force-pushed the add-reset-colors-to-default branch 5 times, most recently from f573867 to 8f71e10 Compare June 9, 2026 16:57
@javiermatos

Copy link
Copy Markdown
Contributor Author

I think it is done @hbrunn . How can we continue?

@hbrunn hbrunn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

now you need another positive review and then this can be merged. you might want to review other people's work meanwhile for reciprocity.

site note: usually, you wouldn't touch the translation files and have the translation teams take care of that. If that's generated bullshit, it's much worse than nothing.

@pedrobaeza pedrobaeza added this to the 18.0 milestone Jun 12, 2026

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/ocabot merge minor

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-3448-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot

Copy link
Copy Markdown
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 18.0-ocabot-merge-pr-3448-by-pedrobaeza-bump-minor.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot merge minor

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-3448-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 18.0-ocabot-merge-pr-3448-by-pedrobaeza-bump-minor.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@pedrobaeza

Copy link
Copy Markdown
Member

Please rebase over latest branch to see the possible problem.

@javiermatos
javiermatos force-pushed the add-reset-colors-to-default branch from 8f71e10 to c1a23c5 Compare June 12, 2026 10:33
@javiermatos
javiermatos force-pushed the add-reset-colors-to-default branch from c1a23c5 to d7def44 Compare June 12, 2026 10:52
@hbrunn

hbrunn commented Jun 12, 2026

Copy link
Copy Markdown
Member

/ocabot merge minor

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-3448-by-hbrunn-bump-minor, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 2409499 into OCA:18.0 Jun 12, 2026
9 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

4 participants