Hi,
I want price_lop field that have a null value, get value from another field. also accept the value of zero.
price_lop = fields.Float(string='Lop Price')
But not accept the value of zero.
How to solve the problem?
please help me.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I want price_lop field that have a null value, get value from another field. also accept the value of zero.
But not accept the value of zero.
How to solve the problem?
please help me.
In Odoo Integer/Float Data type default value always zero.
If float in that case check
if float_value == 0: (equal to 0)
if float_value != 0: (not equal to 0)
if float_value > 0: (greater than)
if float_value < 0: (less than)
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up