Skip to content
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][FIX] stock_move_location: Move Line destination would stay the default #1964

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions stock_move_location/wizard/stock_move_location.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,14 @@
name="lot_id"
groups="stock.group_production_lot"
/>
<field name="origin_location_id" />
<field name="destination_location_id" />
<field
name="origin_location_id"
force_save="1"
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dreispt Are you sure this is necessary as force_save should be used if field is readonly

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am sure: these values are changed though a form onchange, but the changes are not saved because it is read only.
The force_save is already there for the list view, but I found it is also needed for the kanban view.

/>
<field
name="destination_location_id"
force_save="1"
/>
</div>
<div class="o_kanban_record_bottom">
<div class="oe_kanban_bottom_right">
Expand Down
Loading