ajepe / odoo-addons

Odoo addons
24 stars 40 forks source link

Did you know how to avoid "String" type field "None" values become "false" #15

Closed lmarklil closed 5 years ago

lmarklil commented 5 years ago

image

ajepe commented 5 years ago

A None value in python means that a variable is empty, which is also the same thing in Javascript as falsy value.

lmarklil commented 5 years ago

Well, thanks for your response. But I think it's unreasonable to set None value as 'false' in JSON, it should be null.