85b5ddfc0d95f69a3a5b22cd498c04e8c3af2bc6
When a user tries to import the CSV file with an empty text delimiter or more than one character in text delimiter at that time the traceback will be generated. Steps to reproduce: - Install Accounting module. - Click on import in the bank statement. - Select any CSV file for the bank statement line or can download and import this file - https://drive.google.com/file/d/1lnScw4RN6T01pOkyNON8vvb3FQOPiy1O/view?usp=drive_link - Enter empty text delimiter or more than one character in text delimiter. - Click on the test or Import button. - Error will occur. Error: ValueError: Unsupported file format "text/csv", import only supports CSV, ODS, XLS and XLSX The issue is occurring because text delimiter (options['quoting']) is used as quotechar while reading csv file and quotechar is always a single character string. Check here - https://github.com/odoo/odoo/blob/0fde590bee71618f78e5f954349530bd007c62cf/addons/base_import/models/base_import.py#L494-L497 To solve this issue the length of text delimiter has been checked and if it is not equal to one then a warning is given to the user. sentry-4390461991 closes odoo/odoo#138638 X-original-commit: 1f4aa620779ebe6a0cb7f7ca1910080a258d6fac Signed-off-by: Achraf Ben Azzouz (abz) <abz@odoo.com> Signed-off-by: Saurabh Choraria (sauc) <sauc@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%