eb84a309992cb6545180294ab51f51d7eefbafc3
Due to historical reasons the amount on a statement line is used to find it again so the credit card information can be added to it. Doing a search directly on 'amount' will fail in rare cases when the currency rounding doesn't result in a float with the same amount of decimals as the rounding specifies. E.g.: >>> currency = env['res.currency'].browse(3) >>> currency.rounding 0.01 >>> currency.round(74.85000000000001) 74.85000000000001 When that happens the credit card information is not saved in the backend. To avoid this we do the float comparison properly with float_compare afterwards. PS. Ideally the logic in add_payment should be moved to an override of _prepare_bank_statement_line_payment_values. This way we wouldn't have to do these awkward things to find the statement line. But this approach is not suited for a stable release. opw-1832156
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
If you are a developer you may type the following command at your terminal:
wget -O- https://raw.githubusercontent.com/odoo/odoo/10.0/setup/setup_dev.py | python
Then follow the developer tutorials
For Odoo employees
To add the odoo-dev remote use this command:
$ ./setup/setup_dev.py setup_git_dev
To fetch odoo merge pull requests refs use this command:
$ ./setup/setup_dev.py setup_git_review
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%