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)
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký