[FIX] decimal_precision: change_digit does not return the same data type as precision_get
bzr revid: olt@tinyerp.com-20100921132639-aacj51e3oneax3yb
This commit is contained in:
@@ -58,7 +58,8 @@ decimal_precision()
|
||||
|
||||
def get_precision(application):
|
||||
def change_digit(cr):
|
||||
return pooler.get_pool(cr.dbname).get('decimal.precision').precision_get(cr, 1, application)
|
||||
res = pooler.get_pool(cr.dbname).get('decimal.precision').precision_get(cr, 1, application)
|
||||
return (16, res)
|
||||
return change_digit
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user