Skip to Content
मेन्यू
This question has been flagged
1 Reply
3300 Views

Hey guys, I was hoping someone could check over my implementation.

I have defined this model (and only included the relevant parts)


class EstateProperty(models.Model): 

  expected_price = fields.Float(required=True)

  _sql_constraints = [        ('check_expected_price', 'CHECK(expected_price > 0)',         'The expected price should be positive')    ]


Is this wrong? When I try to save negative numbers onto my form, my system is allowing it. 

Avatar
Discard
Best Answer

Hi, did you upgrade your module ?

Gus

Avatar
Discard
Related Posts Replies Views Activity
1
नव॰ 22
5641
2
नव॰ 18
10206
1
मार्च 15
6052
4
मार्च 15
5245
1
मार्च 15
3611