Make rounding on currency required to prevent zero division
This commit is contained in:
1 parent
fca3ef45a1
commit
4f6edd2f20
1 file changed
+1
-1
+1
-1
@@ -16,7 +16,7 @@ class Currency(OSV):
|
||||
code = fields.Char('Code', size=3, required=True)
|
||||
rate = fields.Function('get_rate', string='Current rate', digits=(12, 6))
|
||||
rates = fields.One2Many('currency.currency.rate', 'currency', 'Rates')
|
||||
rounding = fields.Numeric('Rounding factor', digits=(12, 6))
|
||||
rounding = fields.Numeric('Rounding factor', digits=(12, 6), required=True)
|
||||
digits = fields.Integer('Diplay Digits')
|
||||
active = fields.Boolean('Active')
|
||||
|
||||
|
||||
Reference in new issue
Block a user