Be less strict on boolean type in PYSON expression
PYSON enforce the boolean type for If, And, Or etc. But it is more a constraint for the developer than a protection against bugs. I think we should just replace non-boolean value by a Bool one.
PYSON enforce the boolean type for If, And, Or etc. But it is more a constraint for the developer than a protection against bugs. I think we should just replace non-boolean value by a Bool one.
assigned to @ced
added proteus sao tryton trytond type::behavior + 1 deleted label
added 1 deleted label and removed 1 deleted label
review58271002 updated at https://codereview.tryton.org/58271002/#ps1
review58281002 updated at https://codereview.tryton.org/58281002/#ps1
New changeset ac2b2e54431c by Cédric Krier in branch 'default':
Implicit conversion to boolean in PYSON statement
https://hg.tryton.org/trytond/rev/ac2b2e54431c
added 1 deleted label and removed 1 deleted label
closed
New changeset 6ab138a9f571 by Cédric Krier in branch 'default':
Implicit conversion to boolean in PYSON statement
https://hg.tryton.org/tryton/rev/6ab138a9f571
New changeset c5be8f47e088 by Cédric Krier in branch 'default':
Implicit conversion to boolean in PYSON statement
https://hg.tryton.org/proteus/rev/c5be8f47e088
New changeset b94dc908b985 by Cédric Krier in branch 'default':
Implicit conversion to boolean in PYSON statement
https://hg.tryton.org/sao/rev/b94dc908b985