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

[16.0][FIX] mis_builder: python 3.9 compatibility #597

Merged

Conversation

ivs-cetmix
Copy link
Member

Make the code compatible with Python 3.9 to allow using official Odoo Docker containers

Closes #590

@OCA-git-bot
Copy link
Contributor

Hi @sbidoul,
some modules you are maintaining are being modified, check this out!

@sbidoul sbidoul changed the title [16.0][FIX] mis_builder [16.0][FIX] mis_builder: python 3.9 compatibility Feb 8, 2024
Copy link
Member

@sbidoul sbidoul left a comment

Choose a reason for hiding this comment

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

Thanks. A couple of comments, otherwise looks good.

@@ -543,4 +543,4 @@ def get_unallocated_pl(cls, companies, date):
# TODO shoud we include here the accounts of type "unaffected"
# or leave that to the caller?
bals = cls._get_balances(cls.MODE_UNALLOCATED, companies, date, date)
return tuple(map(sum, zip(*bals.values(), strict=True)))
return tuple(map(sum, zip(*bals.values()))) # noqa
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return tuple(map(sum, zip(*bals.values()))) # noqa
return tuple(map(sum, zip(*bals.values()))) # noqa: XXXX

Silence the specific warning, for documentation and precision.

@@ -0,0 +1 @@
Error when running on official Odoo Docker image using Python 3.9
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Error when running on official Odoo Docker image using Python 3.9
Restore compatibility with python 3.9

@sbidoul sbidoul added the 16.0 label Feb 8, 2024
Make the code compatible with Python 3.9 to allow using official Odoo Docker containers
@ivs-cetmix ivs-cetmix force-pushed the 16.0-t3281-mis_builder-python_3_9-compatability branch from 09c31af to 203ec4a Compare February 8, 2024 11:35
@ivs-cetmix
Copy link
Member Author

Thank you @sbidoul ! I have applied the suggested updates. Could you please check again?

@sbidoul
Copy link
Member

sbidoul commented Feb 9, 2024

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-597-by-sbidoul-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 379530c into OCA:16.0 Feb 9, 2024
5 checks passed
@OCA-git-bot
Copy link
Contributor

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

@ivs-cetmix ivs-cetmix deleted the 16.0-t3281-mis_builder-python_3_9-compatability branch February 9, 2024 13:14
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.

Error MIS BUILDER in odoo 16 (Docker)
4 participants