-
-
Notifications
You must be signed in to change notification settings - Fork 227
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][IMP] account_invoice_report_grouped_by_picking: Add possibility to set custom order at lines #299
[15.0][IMP] account_invoice_report_grouped_by_picking: Add possibility to set custom order at lines #299
Conversation
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.
LGTM
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.
This is not a good approach for adding hooks to be modified on custom modules, as it makes very difficult to follow the behavior on time.
Instead of passing an extra argument, move self.invoice_line_ids.sorted(lambda ln: (-ln.sequence, ln.date, ln.move_name, -ln.id), reverse=True)
to a method that returns this sorted lines like _get_grouped_by_picking_sorted_lines
), and you inherit such method in custom.
…et custom order at lines
a98c752
to
f974d6f
Compare
Changed @pedrobaeza |
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
What a great day to merge this nice PR. Let's do it! |
@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 15.0-ocabot-merge-pr-299-by-pedrobaeza-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. |
/ocabot merge patch |
This PR has the |
/ocabot merge patch |
This PR looks fantastic, let's merge it! |
@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 15.0-ocabot-merge-pr-299-by-pedrobaeza-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. |
Changes have not yet been merged |
/ocabot merge patch |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 48962fd. Thanks a lot for contributing to OCA. ❤️ |
cc @Tecnativa TT46676
ping @sergio-teruel @carlosdauden