-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
[16.0][FIX] mis_builder: python 3.9 compatibility #597
Conversation
Hi @sbidoul, |
There was a problem hiding this 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.
mis_builder/models/aep.py
Outdated
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error when running on official Odoo Docker image using Python 3.9 | |
Restore compatibility with python 3.9 |
Make the code compatible with Python 3.9 to allow using official Odoo Docker containers
09c31af
to
203ec4a
Compare
Thank you @sbidoul ! I have applied the suggested updates. Could you please check again? |
/ocabot merge patch |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 3aea423. Thanks a lot for contributing to OCA. ❤️ |
Make the code compatible with Python 3.9 to allow using official Odoo Docker containers
Closes #590