Skip to content

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

Open
FrankC013 wants to merge 1 commit into14.0from
14.0-fix-l10n_es_aeat_mod190-allow_install_module
Open

[14.0][FIX] l10n_es_aeat_mod_190: fix memory error when try to install module#9
FrankC013 wants to merge 1 commit into14.0from
14.0-fix-l10n_es_aeat_mod190-allow_install_module

Conversation

@FrankC013
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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