Skip to content

[19.0][FIX] update pre-commit-config#724

Merged
pedrobaeza merged 2 commits into
OCA:19.0from
Studio73:19.0-FIX-update-pre-commit-config
May 22, 2026
Merged

[19.0][FIX] update pre-commit-config#724
pedrobaeza merged 2 commits into
OCA:19.0from
Studio73:19.0-FIX-update-pre-commit-config

Conversation

@eugenios73
Copy link
Copy Markdown

The update to pre-commit-config resolves the issue with the command, which appears to be outdated due to the change in version 19.0 to the "user_ids" attribute of the "ir.filters" base model. This attribute has changed compared to version 18.0, where it was "user_id". The commit showing this change can be found here: odoo/odoo@414e55c

Copy link
Copy Markdown
Contributor

@Reyes4711-S73 Reyes4711-S73 left a comment

Choose a reason for hiding this comment

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

LGTM

@eugenios73 eugenios73 force-pushed the 19.0-FIX-update-pre-commit-config branch from 7b74551 to b114398 Compare January 21, 2026 10:07
@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). 🤖

@Reyes4711-S73
Copy link
Copy Markdown
Contributor

@OCA/crm-sales-marketing-maintainers Please, can you review/merge this PR?

Copy link
Copy Markdown

@luisDIXMIT luisDIXMIT left a comment

Choose a reason for hiding this comment

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

LGTM!

@eugenios73
Copy link
Copy Markdown
Author

@pedrobaeza Please can you review / mergtte this PR ?

@pedrobaeza pedrobaeza added this to the 19.0 milestone May 22, 2026
Copy link
Copy Markdown
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 don't do this manually, but run copier update.

@eugenios73 eugenios73 force-pushed the 19.0-FIX-update-pre-commit-config branch from b114398 to 0ab30eb Compare May 22, 2026 06:53
@eugenios73 eugenios73 force-pushed the 19.0-FIX-update-pre-commit-config branch 2 times, most recently from 2f3cc54 to 3e326ac Compare May 22, 2026 07:43
@OCA-git-bot OCA-git-bot added mod:crm_claim Module crm_claim mod:crm_lead_to_task Module crm_lead_to_task mod:crm_project_create Module crm_project_create mod:crm_location Module crm_location mod:srm Module srm labels May 22, 2026
@eugenios73 eugenios73 force-pushed the 19.0-FIX-update-pre-commit-config branch from 3e326ac to e4a29d2 Compare May 22, 2026 08:05
@eugenios73
Copy link
Copy Markdown
Author

Hi again @pedrobaeza , I've already applied the changes you mentioned and fixed some new errors in the repository modules that weren't showing up before the update. As for the error appearing in the tests, I've already solved it in PR #712. Thanks in advance.

@eugenios73 eugenios73 requested a review from pedrobaeza May 22, 2026 08:38
Copy link
Copy Markdown
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.

I also miss the file .gitattributes or similar.

Comment thread checklog-odoo.cfg
@@ -1,3 +0,0 @@
[checklog-odoo]
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.

The latest copier template doesn't remove this file. On contrary, it includes more lines.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@pedrobaeza Apologies, I have re-added the checklog-odoo.cfg file; I'm not sure why it had been deleted. The .gitattributes file is not in the commit because there haven't been any changes. I'm not entirely sure if this is correct. Is that possible?

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.

And what about the new lines added here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@pedrobaeza to ensure the process was right, I reset my local branch to the state before the changes and checked for any updates in the source branch. I re-ran update copier --trust, double-checking every prompt, but the result was identical: it deletes the checklog-odoo.cfg file and makes no changes to .gitattributes. Could you check if this is expected or if there's an issue with the copier update? I've attached screenshots of the modified files after running the command and the copier prompts.

image image

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.

Copier sometimes fail as it seems. The complete file should be: https://github.com/OCA/oca-addons-repo-template/blob/master/src/%7B%25%20if%20enable_checklog_odoo%20%25%7Dchecklog-odoo.cfg%7B%25%20endif%20%25%7D

Anyway, the CI right now is red.

@eugenios73 eugenios73 force-pushed the 19.0-FIX-update-pre-commit-config branch from e4a29d2 to 0a0a75d Compare May 22, 2026 09:12
@pedrobaeza
Copy link
Copy Markdown
Member

OK, seeing that you fix it in other PR. I'm merging this manually.

@pedrobaeza pedrobaeza merged commit 2022ba9 into OCA:19.0 May 22, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:crm_claim Module crm_claim mod:crm_lead_to_task Module crm_lead_to_task mod:crm_lead_vat Module crm_lead_vat mod:crm_location Module crm_location mod:crm_project_create Module crm_project_create mod:srm Module srm series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants