-
-
Notifications
You must be signed in to change notification settings - Fork 272
[16.0][IMP] stock_quantity_history_location: invisible location except from stock.quant view #423
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
base: 16.0
Are you sure you want to change the base?
Conversation
… stock.quant view
|
Hi @rolandojduartem, @luisg123v, |
yostashiro
left a comment
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 think include_child_locations should be removed. See odoo/odoo#78078.
Can you please also update the README accordingly, as the usage seems outdated.
@yostashiro Done! |
d839983 to
1e16800
Compare
yostashiro
left a comment
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.
stock_quantity_history_location/tests/test_stock_quantity_history_location.py
Outdated
Show resolved
Hide resolved
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.
Functional review
LGTM
|
This PR has the |
Odoo core behavior has changed, so this module’s redundant code can be removed: - Drop the include_child_locations flag: child locations are now included by default (see odoo/odoo#78078). - Remove the company_owned context: it was removed upstream in commit odoo/odoo@6fd0575#diff-2f7d1a089caccb39f6dcaf4afe19af96ebf382886e382b22e1e956ba94a927c9.
1e16800 to
3a1bd02
Compare
|
@oca/stock-logistics-reporting-maintainers |
| attrs="{'invisible': [('location_id', '=', False)]}" | ||
| name="location_id" | ||
| groups="stock.group_stock_multi_locations" | ||
| invisible="context.get('active_model') != 'stock.quant'" |
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.
does this work on Odoo 16.0? I think it should be attrs
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.
@rolandojduartem
It works on odoo 16.0. You can see how odoo standard field inventory_datetime displays in view depends on model.
https://github.com/odoo/odoo/blob/1adee2b7452c072bcce51cd75641a9e4c2b7f219/addons/stock_account/wizard/stock_quantity_history.xml#L9-L19.
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
3a1bd02 to
0c1063e
Compare
kanda999
left a comment
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.
Functional review: it works in prod server
This PR makes the location field invisible when the model is not stock.quant (locations view), because the location context is not used in other models (e.g.,
stock.valuation.layer) and choosing location will not effect the functionality. So, displaying this field in the pop-up of other models (e.g., Stock Valuation Layer) may confuse users.@qrtl QT4756