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][13.0] pos_empty_home : Make it configurable and simplify code #642
Conversation
ping @hkapatel-initos, would you please help with a review here :) |
|
class PosConfig(models.Model): | ||
_inherit = "pos.config" | ||
|
||
iface_empty_home = fields.Boolean( |
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.
I've reviewed your PR. it is good that the code has been reduced and 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.
Thanks !
ping @OCA/pos-maintainers , any take on this one? |
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.
Makes sense. thanks for improving the CI.
/ocabot merge minor
This PR has the |
Thanks! Would you please run the ocabot command again? Unfortunately it's not triggered when written on the review comments |
Weird. /ocabot merge minor |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at fce11ce. Thanks a lot for contributing to OCA. ❤️ |
Hello, two commits here
screens.js
and.css
files can be removed.pos.config
The 2nd point is, specially, to be able to run test tours in order modules without this module affecting results, as it completely removes the product list when no category is selected.. which is something most tours would need.
In line with that, "Empty Home" is disabled by default in the demo
pos.config
:point_of_sale.pos_config_main
, which is the one used by tests normally. It's otherwise enabled by default in all otherpos.config
, as this is what you'd expect when installing the module (also to avoid affecting users that already use this module).