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

[13.0] wrong rename for account.move.reverse_entry_id #4376

Open
Lukwos opened this issue Apr 5, 2024 · 1 comment
Open

[13.0] wrong rename for account.move.reverse_entry_id #4376

Lukwos opened this issue Apr 5, 2024 · 1 comment
Labels

Comments

@Lukwos
Copy link

Lukwos commented Apr 5, 2024

I don't know if it's a bug or I misunderstand something

In 12.0 reverse_entry_id is set in the original move and point to the reverse move
https://github.com/odoo/odoo/blob/12.0/addons/account/models/account_move.py#L469

In 13.0 reversed_entry_id is set in the reverse move and point to the original move
https://github.com/odoo/odoo/blob/13.0/addons/account/models/account_move.py#L2247

But in the pre-migration we rename reverse_entry_id to reversed_entry_id and so point in the wrong direction
https://github.com/OCA/OpenUpgrade/blob/13.0/addons/account/migrations/13.0.1.1/pre-migration.py#L37

@Lukwos Lukwos added the bug label Apr 5, 2024
@pedrobaeza
Copy link
Member

pedrobaeza commented Apr 13, 2024

Yes, it's a mistake. Can you please propose the fix doing?:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants