Skip to content

[FIX] base: default value in set_multi#25457

Merged
nim-odoo merged 1 commit intoodoo:10.0from
odoo-dev:10.0-opw-1858271-default_value-nim
Jun 26, 2018
Merged

[FIX] base: default value in set_multi#25457
nim-odoo merged 1 commit intoodoo:10.0from
odoo-dev:10.0-opw-1858271-default_value-nim

Conversation

@nim-odoo
Copy link
Copy Markdown
Contributor

Make sure to test None instead of any falsy value. Indeed, when we
want to explicitly pass a False default value, set_multi might
select an incorrect default value.

This is for example the case of _inverse_product_pricelist, where
default_for_country might be False on purpose.

opw-1858271

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@nim-odoo nim-odoo self-assigned this Jun 25, 2018
@nim-odoo nim-odoo added the OE the report is linked to a support ticket (opw-...) label Jun 25, 2018
Make sure to test `None` instead of any falsy value. Indeed, when we
want to explicitly pass a `False` default value, `set_multi` might
select an incorrect default value.

This is for example the case of `_inverse_product_pricelist`, where
`default_for_country` might be `False` on purpose.

opw-1858271
@nim-odoo nim-odoo force-pushed the 10.0-opw-1858271-default_value-nim branch from 10f76c4 to 697b2f7 Compare June 26, 2018 07:02
@nim-odoo nim-odoo merged commit 2254b5c into odoo:10.0 Jun 26, 2018
@nim-odoo nim-odoo deleted the 10.0-opw-1858271-default_value-nim branch June 26, 2018 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OE the report is linked to a support ticket (opw-...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant