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] partner_helper: add strict mode that raise an error if address is too long #1790

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

sebastienbeau
Copy link
Member

Add an optional strict mode, so you can raise an error if the address can not be splitted correctly because it's too long

@bealdav @florian-dacosta



def split_char(char, output_number, size):
words = char.split(" ")
def split_char(char, output_number, size, strict):
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't it better to set strict=False in signature in case some modules use this method directly ?

Copy link
Member

Choose a reason for hiding this comment

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

yes, it avoid to break things

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@florian-dacosta florian-dacosta left a comment

Choose a reason for hiding this comment

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

LGTM (minor comment)
Please port this to last version of the module

@bealdav
Copy link
Member

bealdav commented Jun 24, 2024

@sebastienbeau
Copy link
Member Author

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 14.0-ocabot-merge-pr-1790-by-sebastienbeau-bump-patch, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Jun 24, 2024
Signed-off-by sebastienbeau
@OCA-git-bot
Copy link
Contributor

@sebastienbeau your merge command was aborted due to failed check(s), which you can inspect on this commit of 14.0-ocabot-merge-pr-1790-by-sebastienbeau-bump-patch.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@dreispt
Copy link
Member

dreispt commented Sep 23, 2024

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 14.0-ocabot-merge-pr-1790-by-dreispt-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 8d3e415 into OCA:14.0 Sep 23, 2024
4 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at ebcd65e. Thanks a lot for contributing to OCA. ❤️

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

Successfully merging this pull request may close these issues.

5 participants