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

[14.0][FIX] l10n_es_aeat_mod_190: fix memory error when try to install module #9

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from

Conversation

FrankC013
Copy link

No description provided.

@FrankC013 FrankC013 force-pushed the 14.0-fix-l10n_es_aeat_mod190-allow_install_module branch from 095e586 to 839b7c6 Compare November 15, 2024 07:46
@FrankC013 FrankC013 force-pushed the 14.0-fix-l10n_es_aeat_mod190-allow_install_module branch from 839b7c6 to 492b628 Compare November 15, 2024 10:44
@FrankC013 FrankC013 requested a review from eantones November 15, 2024 10:55
Copy link
Member

@eantones eantones left a comment

Choose a reason for hiding this comment

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

It's broadly correct, but you have to execute the SQL query only during the module installation, on a regular execution the original Python code must be used (you can use "install_mode" of the context). Also you should flush before executing the query to be sure the data are you using (only this data, not all the fields) is already written to the database. Please, check examples of both changes in Odoo code base.

@eantones
Copy link
Member

I forgot to mention that maybe we should create a nuobit module for this.

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

Successfully merging this pull request may close these issues.

2 participants