-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
[15.0][FIX] account_invoice_report_grouped_by_picking: Method abs is called when remaining_qty is near of zero #337
Conversation
… when remaining_qty is near of zero TT51353
ping @sergio-teruel @chienandalu FWPort after merge |
4cfd538
to
2d54c82
Compare
@@ -101,45 +91,51 @@ def lines_grouped_by_picking(self): | |||
} | |||
) | |||
continue | |||
|
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.
Please don't add empty lines inside a method, for both continuing with the existing style and as PEP8 recommendation.
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.
Changes done, but PEP8 allow blank lines in this cases:
Extra blank lines may be used (sparingly) to separate groups of related functions. Blank lines may be omitted between a bunch of related one-liners (e.g. a set of dummy implementations).
Use blank lines in functions, sparingly, to indicate logical sections.
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.
The main problem is that this method is too long and smaller methods should be created.
I discarded that change because all these methods are being declared in the account.move model.
The ultimate solution is to bring all this logic into an abstract_report, but I didn't want to do that in a stable release.
Let's keep that in mind for the migration to the new version.
…plify and remove OrderedDict From Python 3.7 dictionaries maintain the insertion order, so OrderedDict is unnecessary and adds overhead.
2d54c82
to
04b4d84
Compare
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.
/ocabot merge patch
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 4d6a89c. Thanks a lot for contributing to OCA. ❤️ |
@Tecnativa TT51353