[FIX] point_of_sale: no need to specify numeric digits
authorDenis Ledoux <dle@odoo.com>
Tue, 21 Oct 2014 08:13:44 +0000 (10:13 +0200)
committerDenis Ledoux <dle@odoo.com>
Tue, 21 Oct 2014 08:13:44 +0000 (10:13 +0200)
commit78a29b3738c14ccc8b042de1d95f502e4bc282ef
tree7f9ff4f8a7c694d6858e90844a9542f84a9b30b9
parentb00122ad995c1f0b80bf30dcd46580bef2422743
[FIX] point_of_sale: no need to specify numeric digits

In the report pos order, average_price was set as a numeric(16,2), therefore, if the amount was too big, it led to a psql crash:
A field with precision 16, scale 2 must round to an absolute value less than 10^14.
addons/point_of_sale/report/pos_order_report.py