57da33a9ffd77c4a2eb4b801da4b8853168ae3d6
Have a form view with a view button. Make some changes in the form s.t. the create/write rpc will return an error. Before this commit, the "oh snap" dialog was displayed, providing 2 choices to the user: stay here (basically, close the error dialog and do nothing else) or discard (discard changes, and continue the flow). In this case, the flow is to do the "call_button" as we clicked on a view button. It means that if the user clicked on discard, we still call the method/action, even though the record was invalid (and maybe not even existing if it was a new record). This can cause other issues afterwards. The "oh snap" dialog was designed for navigation flows (e.g. menu, breadcrumbs...), when the user tries to leave the form view. It doesn't fit very well with flows involving the current record that couldn't been saved. This commit thus prevents the "oh snap" dialog from being displayed if the save preceeding a call_button fails. The error returned by the save is simply displayed in a basic dialog that can only be closed. opw~3395109 closes odoo/odoo#135050 X-original-commit: 50b2a24f22cb470bcc1a9befe677cf794211d7b2 Signed-off-by: Géry Debongnie <ged@odoo.com> Signed-off-by: Aaron Bohy (aab) <aab@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%