52df6a3a6b2d8b50616f0828ec88267d3adfd075
Problem: It is possible for an `account.bank.statement.line` to have in the database the field `amount` set to `NULL`. It happens when importing from the 'bank statement line' list view (Favorites>Import Records), a csv file that have no column 'amount'. This causes an issue for the queries accesing that value, as they expect a number and get a Nonetype (for example in the function `_compute_running_balance`). Solution: As this is stable, we cannot change the attributes of the field. So here, in the `create` function, we set the amount to 0 if it is not specified. Like when you create a bank statement line with the 'create' button, where this field is set to 0 per default (client side). opw-3161652 closes odoo/odoo#111585 X-original-commit: 37b271e777576fbaed6e718bb7cd1c064fdb9a54 Signed-off-by: Laurent Smet <las@odoo.com>
…
…
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, ...
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.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%