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] auditlog: Migration to 17.0 #2755

Merged
merged 165 commits into from
Apr 12, 2024
Merged

Conversation

rven
Copy link
Contributor

@rven rven commented Nov 14, 2023

No description provided.

sebalix and others added 30 commits November 14, 2023 15:19
…itlog.log' model (standard 'create_date' field is used instead)
…ail data - if any - are migrated during the installation)
… 'field_description' fields changed into related fields
…mpanies

Having a product.template with taxes from multiple companies assigned, let a
user without all of these companies enabled set the taxes of that product.

Before this change, the taxes related to inaccessible companies will be
inadvertently removed.

Co-authored-by: Raf Ven <[email protected]>
Copy link
Member

@StefanRijnhart StefanRijnhart left a comment

Choose a reason for hiding this comment

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

Thanks for the updates!

@xFingerlinKx
Copy link

when will the version for 17 Odoo be available?

@StefanRijnhart
Copy link
Member

@xFingerlinKx as soon as more people have done a code review or a functional test. People like you!

@StefanRijnhart
Copy link
Member

@rven please check this fix of a regression introduced by the cache invalidation improvement: #2834

BT-anieto and others added 3 commits February 19, 2024 08:20
When adding/removing a group in a user (and tracking a user or a partner), odoo sends a 'reified' val 'in_group_{group_id}'. We must convert this value into the real groups_id one.
@rven
Copy link
Contributor Author

rven commented Feb 19, 2024

@StefanRijnhart I added the specific commit into this PR, I had to change the test a little bit because of a ensure_one error.

@StefanRijnhart
Copy link
Member

@rven Great, thanks!

@heccjj
Copy link

heccjj commented Mar 13, 2024

Is this a bug?
I override the method do_print_picking() of stock.picking model, and there is code like this:
self.write({'printed': True})
Then add and subscribe stock.picking auditlog rule.
When I print a stock picking, I will get an empty log, without log_line!

@StefanRijnhart
Copy link
Member

@heccjj Your change does not seem substantial, you just leave out actually rendering the report. Therefore, I tested this on this PR's runbot, and I can't reproduce:

image

So it does not seem like a bug in the module. Perhaps there is some other customization in your setup that interferes here.

@heccjj
Copy link

heccjj commented Mar 14, 2024

@StefanRijnhart Thanks for your reply. I try it again. If I print the picking slip first time, I get correct log, but if I print this picking slip again(field printed is already "True"), get an empty log.

@StefanRijnhart
Copy link
Member

@heccjj That makes sense, because the written values are only logged if the values differ from the current field values. The log is still present to represent the write itself (this is a design choice), but it is empty because there were no actual changes. So, not a bug.

Copy link

@DucTruongKomit DucTruongKomit left a comment

Choose a reason for hiding this comment

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

Look good

@OCA-git-bot
Copy link
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). 🤖

@pedrobaeza
Copy link
Member

/ocabot merge nobump
/ocabot migration auditlog

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 17.0-ocabot-merge-pr-2755-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit ad29e1b into OCA:17.0 Apr 12, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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