Skip to content

Fix sale order onchange failure on False value on M2o#77

Open
guewen wants to merge 1 commit intoOCA:14.0from
guewen:fix-no-m2o
Open

Fix sale order onchange failure on False value on M2o#77
guewen wants to merge 1 commit intoOCA:14.0from
guewen:fix-no-m2o

Conversation

@guewen
Copy link
Member

@guewen guewen commented May 24, 2023

When an onchange returns False for a m2o field, the sale order onchange component will fail because it tries to get the first item of the tuple (id, name). We should just keep the False value.

Copy link

@john-herholz-dt john-herholz-dt left a comment

Choose a reason for hiding this comment

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

I just ran across this today when migrating the onchange_helper for 17.0.
This here is a cool addition, might need a change for 17.0 as well, because I got a dict instead of tuple now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants