1c16fb7844427a1083784f15ede7d3e79e6a45fc
When the user uninstalls a payment provider module(s) and there are some transaction lines linked with the 'account.payment.method' record(s), It will throw the "ForeignKeyViolation" traceback. This commit raised the UserError message. Steps to produce (Example only): - Install website_sale module. - Go Invoicing > Configuration > Payments > Payment Providers - Search "PayPal" and install it, open it, and fill up the credentials tab. - Create an order from the website and pay with PayPal. - Go to the Apps menu and search the "payment_paypal" module and try to uninstall it. After that traceback will be generated. Error: update or delete on table "account_payment_method" violates foreign key constraint "account_payment_method_line_payment_method_id_fkey" on table "account_payment_method_line" sentry-4261586022 [WIP]payment_provider raise msg improvement closes odoo/odoo#132251 X-original-commit: 9eb5ea9746cf277f09f5258dbc276162280b275b Signed-off-by: Florian Gilbert (flg) <flg@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%