Hi,
I want price_lop field that have a null value, get value from another field. also accept the value of zero.
product_price = fields.Float('Price',related='product.lst_price',readonly=True)
price_lop = fields.Float(string='Lop Price')
price_lop = fields.Float(string='Lop Price')
@api.multi
def default_price(self):
if not self.price_lop :
self.price_lop = self.product_price
return self.price_lop
But not accept the value of zero.
How to solve the problem?
please help me.