-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[IMP][12.0][base_exception] Improvements on base_exception #1609
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.
- main_exception can be still be good in tree view, where you don't have much space
- copy=False is a good improvement.
LGTM |
@florian-dacosta great! |
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.
Code review
Please @pedrobaeza @yajo or any @OCA/tools-maintainers could review here and merge? this PR is blocking other PR, thanks |
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 looks mostly fine now, thanks.
Just some whitespace to remove, as a matter of code convention.
Also please squash all commits in one, to do the final merge.
[IMP] Computed exception descriptions field, to display better help messages [IMP] Exceptions shouldn't be copied
65b4970
to
ee215ee
Compare
done @yajo ! |
/ocabot merge |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at fa199be. Thanks a lot for contributing to OCA. ❤️ |
This is what makes this possible in
sale_exception
(OCA/sale-workflow#878):If modules like
sale_exception
implement this approach for displaying errors, main_exception_id field wouldn't be necessary anymore.Also added
copy=False
toexception_ids
because they should be reevaluated, not copied.