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

[9.0] Use correct syntax to add options with onchange on stock picking #131

Merged
merged 1 commit into from Apr 28, 2017

Conversation

mdietrichc2c
Copy link
Contributor

Small fix for an issue I found : if the carrier is edited manually on a stock picking, the values given to the one2many field "option_ids" are a RecordSet.

It works fine when editing, but afterwards, when the picking is written, the values are with the format {'option_ids': [(1, <ID of the option>, <value of the option>)]}, not {'option_ids': [(6, False, [<ID of the option>])]}, which leads to the values not being written in the picking.

Copy link
Member

@guewen guewen left a comment

Choose a reason for hiding this comment

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

tested

Copy link
Member

@yvaucher yvaucher left a comment

Choose a reason for hiding this comment

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

Thanks

@yvaucher yvaucher merged commit ec982db into OCA:9.0 Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants