-
Notifications
You must be signed in to change notification settings - Fork 105
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] shopinvader_schema_sale: allow to hide some line in the schema (like delivery...) #1564
base: 16.0
Are you sure you want to change the base?
Conversation
@paradoxxxzero can you check why the test are failing ? |
1ca2b66
to
eeb5766
Compare
Is it ok for a |
eeb5766
to
74268a5
Compare
@sbidoul maybe we should move the logic in sale_cart ? but before let's see my comment here : shopinvader/odoo-shopinvader-carrier#11 (comment) |
If it is functional to the schema IMO it makes sense. |
) | ||
|
||
def _is_visible_in_shopinvader_api(self): | ||
self.ensure_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.
Using ensure_one
on internal methods meant to be used in loops is useless IMO if not counter productive: you'll check N times something that you know.
Add hook to be able to hide "technical" product in the api
See use case here: shopinvader/odoo-shopinvader-carrier#11