Closed WR-96 closed 3 years ago
crea la pr a odoo we
ellos la ven en nuestra noche tageas a nim-odoo
Este es el PR a Odoo: https://github.com/odoo/odoo/pull/60041
Rebasing because the last force-push included a huge diff from other commits.
cc/ @WR-96 @mart-e
Regards.
Oups, sorry about it, I did not realised the branch was shared between two different PRs. I made a rebase as the runbot was red, due to a pylint issue (which is solved now)
@hbto another reason for keeping only one PR, the one for odoo/odoo :smile:
BTW @WR-96, remember to move CLA signature onto a separate commit, as your PR is not mergeable until so.
PR closed since that the real one is for odoo:
Description of the issue/feature this PR addresses:
[FIX] website: Proper management of validation errors in frontend
Current behavior before PR:
We can suppose the case where we need to put any kind of validation, constraint or error, at the moment of publishing an element on the website the error message shown doesn't include the original text of the corresponding validation but it shows the text 'undefined' instead of a human-readable text.
Desired behavior after PR is merged:
After this change instead of showing the 'undefined' text the 'raise' message returned by the server is correctly displayed, with an appropriate title that allows the user to know what kind of validation error is actually failing, making it easier to take a decision to the user.
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Odoo PR: https://github.com/odoo/odoo/pull/60041