odoo/addons/payment_ogone
Denis Ledoux 7c2521a79b [FIX] payment_ogone: amount rounding issue
The amount to pay must be sent without comma to ogone.
e.g., for 66.99 EUR, the amount sent must be 6699.

To do that, we simply applied 66.99 * 100, which
seems rather good.

However, due to the fact how floats are handled in computers,
`66.99 * 100` returns 6698.999999999999
and
`int(6698.999999999999)` returns 6698
while we expected 6699

Using `float_repr` with `0` as decimal precision
instead of using `int` solves this issue.
`float_repr(6698.999999999999, 0)` returns 6699, as expected.
2015-07-09 11:51:40 +02:00
..
controllers [REM] remove disable_db and ensure_db() from addons 2014-01-30 10:23:08 +01:00
data [FIX] payment_*: typo, cliking -> clicking 2014-11-12 10:31:29 +01:00
i18n [I18N] Update translation terms from Transifex 2015-07-05 01:52:32 +02:00
models [FIX] payment_ogone: amount rounding issue 2015-07-09 11:51:40 +02:00
static
tests [FIX] remove deprecated checks/fast_suite test attributes from standard modules 2015-01-15 14:31:40 +01:00
views [IMP] payment addons: fixed submit buttons: now have type=submit (and not image or nothing) and removed name, because this may cause issues when trying to submit a form manually with type=submit and a name. Also improved js code in website_sale to correctly handle the click binding, the asynchronous call to the server to create the transaction, and then submit the form. As form submission is synchronous in javascript, we cannot use the deferred. Instead we prevent the click event from bubbling, wait for the server to create the transaction, adn then manually submit the form. 2014-05-27 11:35:32 +02:00
__init__.py
__openerp__.py