e9266ad1c01c9d51b499fe210dbb3bcd3908e258
This traceback arises when a user tries to make a payment on the website. To reproduce this issue: 1) Install 'website_sale' 2) open invoicing/configuration/journals 3) Change the journal type if it is 'sales' 4) Install and enable 'Wire Transfer' payment provider in invocing/configuration/Payment Providers 5) Now open 'website/shop' add any product to cart and proceed to checkout 6) Make a payment with 'Wire Transfer' Error: 'ValueError Expected singleton: account.journal()' On '_compute_sale_order_reference' method, 'invoice_journal' variable is getting values with the reference of 'type=sale'. See:- https://github.com/odoo/odoo/blob/ebc4ed6c4fb11b01be28cf417b27de83d5361cef/addons/sale/models/payment_transaction.py#L20-L30 Because of user changed the type of journal, 'invoice_journal' value will be empty recordset and it is referenced to call '_process_reference_for_sale_order' method. In '_process_reference_for_sale_order' method ensure_one() is used, which leads to above traceback. sentry-4392496618 closes odoo/odoo#134083 X-original-commit: c880a295d0f7feff48b08fd00723a41b8d564d2d Signed-off-by: Olivier Colson (oco) <oco@odoo.com> Signed-off-by: Altaf Shaik (alsh) <alsh@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%