跳至内容
菜单
此问题已终结
1 回复
2542 查看

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. 

形象
丢弃
最佳答案

Hi, did you upgrade your module ?

Gus

形象
丢弃
相关帖文 回复 查看 活动
1
11月 22
4317
2
11月 18
9517
1
3月 15
5471
4
3月 15
4690
1
3月 15
3062