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

[FIX] core: post_load default value should be same as *_init_hook #154316

Closed

Conversation

duong77476-viindoo
Copy link
Contributor

-Step to reproduce: add a post_load method in the init of any module, specify in the manifest like : 'post_load': 'post_load'. Run test_manifests of the test_lint module and we will get warning

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@robodoo
Copy link
Contributor

robodoo commented Feb 16, 2024

@C3POdoo C3POdoo requested review from a team, rco-odoo and HydrionBurst and removed request for a team February 16, 2024 06:33
@duong77476-viindoo
Copy link
Contributor Author

Dear @HydrionBurst Can you take a look

@HydrionBurst
Copy link
Contributor

summon @Julien00859

@duong77476-viindoo
Copy link
Contributor Author

Dear Mr @Julien00859 Can you reply to the summon call of Mr @HydrionBurst please 🥺

@duong77476-viindoo
Copy link
Contributor Author

Hi @Julien00859 How are you sir ? Can you take a look ?

@duong77476-viindoo
Copy link
Contributor Author

@Julien00859 Hi sir, can you have a look ?

@Julien00859
Copy link
Member

Hello @duong77476-viindoo sorry I was on holiday last week. I'm looking at it now 👍

@Julien00859
Copy link
Member

Julien00859 commented Mar 4, 2024

Thank you for your contribution, do you mind re-targeting your fix on 15.0? (you can keep this branch/pr, just reset it on 15.0 and change the target)
So we fix all versions at once! :D

@duong77476-viindoo duong77476-viindoo changed the base branch from 17.0 to 15.0 March 4, 2024 10:57
@duong77476-viindoo
Copy link
Contributor Author

Thank you for your contribution, do you mind re-targeting your fix on 15.0? (you can keep this branch/pr, just reset it on 15.0 and change the target) So we fix all versions at once! :D

Done sir, but v15.0 seem doesn't have the test to check, so probably when r+ someone will need to handle conflict and fix i guest

@@ -341,7 +341,7 @@ def load_information_from_description_file(module, mod_path=None):
'description': '',
'icon': get_module_icon(module),
'installable': True,
'post_load': None,
'post_load': '',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I search across v15 , i notice this only :v

-Step to reproduce: add a post_load method in the init of any module,
specify in the manifest like : 'post_load': 'post_load'. in v16 or above
Run
test_manifests of the test_lint module and we will get warning
@Julien00859
Copy link
Member

Done sir, but v15.0 seem doesn't have the test to check, so probably when r+ someone will need to handle conflict and fix i guest

Yes, I'll handle the forward-port, don't worry :)

@robodoo r+

robodoo pushed a commit that referenced this pull request Mar 4, 2024
-Step to reproduce: add a post_load method in the init of any module,
specify in the manifest like : 'post_load': 'post_load'. in v16 or above
Run
test_manifests of the test_lint module and we will get warning

closes #154316

Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
@robodoo robodoo closed this Mar 4, 2024
3 similar comments
@fw-bot
Copy link
Contributor

fw-bot commented Mar 12, 2024

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.

None yet

5 participants