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

[9.0][FIX] account_chart_update: Check fiscal positions with same name #651

Merged
merged 4 commits into from
Sep 18, 2018

Conversation

MouTio
Copy link
Member

@MouTio MouTio commented May 8, 2018

This PR checks if there is more than one fiscal position with same name and handles the exception, preventing Odoo crash.

@pedrobaeza

@pedrobaeza
Copy link
Member

Are you sure you should block? Maybe it's better to select the first one, and let the user to change that selection.

@MouTio
Copy link
Member Author

MouTio commented May 8, 2018

@pedrobaeza I blocked it because is better than an unhandled exception. but maybe it is better option to select the first one. Changed it.

@pedrobaeza
Copy link
Member

I think you have dug too deeper in the compare methods. It's better to put limit=1 in the corresponding search instead.

@MouTio
Copy link
Member Author

MouTio commented May 8, 2018

Okay, I put the limit in the search of fiscal positions.

@pedrobaeza pedrobaeza added this to the 9.0 milestone May 9, 2018
@pedrobaeza pedrobaeza merged commit 83447d3 into OCA:9.0 Sep 18, 2018
bealdav pushed a commit to akretion/account-financial-tools that referenced this pull request Feb 26, 2019
ernestotejeda pushed a commit to Tecnativa/account-financial-tools that referenced this pull request Mar 15, 2019
ernestotejeda pushed a commit to Tecnativa/account-financial-tools that referenced this pull request Jan 17, 2020
Reyes4711-S73 pushed a commit to Studio73/account-financial-tools that referenced this pull request Mar 8, 2021
flachica pushed a commit to flachica/account-financial-tools that referenced this pull request Feb 23, 2022
flachica pushed a commit to flachica/account-financial-tools that referenced this pull request Apr 4, 2022
flachica pushed a commit to flachica/account-financial-tools that referenced this pull request Apr 9, 2022
ljsalvatierra-factorlibre pushed a commit to factorlibre/account-financial-tools that referenced this pull request Jan 18, 2023
peluko00 pushed a commit to APSL/account-financial-tools that referenced this pull request Apr 30, 2024
dreispt pushed a commit to ursais/account-financial-tools that referenced this pull request May 24, 2024
victoralmau pushed a commit to Tecnativa/account-financial-tools that referenced this pull request Nov 18, 2024
victoralmau pushed a commit to Tecnativa/account-financial-tools that referenced this pull request Dec 12, 2024
victoralmau pushed a commit to Tecnativa/account-financial-tools that referenced this pull request Dec 19, 2024
victoralmau pushed a commit to Tecnativa/account-financial-tools that referenced this pull request Feb 4, 2025
pablo-cort-s73 pushed a commit to Studio73/account-financial-tools that referenced this pull request Feb 14, 2025
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