Use a huge number as quantity on sale.
++++++++
Scenario
++++++++
* create a new sale
* add sale line with product
* add huge quantity: 10e250
raises on change the following error:
Traceback (most recent call last):
File "/trytond/wsgi.py", line 47, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 41, in rpc
request, database_name, *request.rpc_params)
File "/trytond/wsgi.py", line 39, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 105, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 167, in _dispatch
result = rpc.result(meth(inst, *c_args, **c_kwargs))
File "/trytond/model/modelview.py", line 664, in on_change_with
changes[fieldname] = getattr(self, method_name)()
File "/trytond/model/fields/field.py", line 106, in wrapper
return func(self, *args, **kwargs)
File "/trytond/modules/sale/sale.py", line 1266, in on_change_with_amount
return currency.round(amount)
File "/trytond/modules/currency/currency.py", line 200, in round
rounding=rounding) * self.rounding
File "/decimal.py", line 2469, in quantize
'quantize result has too many digits for current context')
File "/decimal.py", line 3873, in _raise_error
raise error(explanation)
InvalidOperation: quantize result has too many digits for current context