addons14/base_rest_demo/services/exception_services.py
def validation_error(self):
        """
        Simulate an odoo.exceptions.ValidationError
        Should be translated into BadRequest with a description into the json
        body
        """
        raise ValidationError(_("ValidationError message"))

        Simulate an odoo.exceptions.ValidationError
        Should be translated into BadRequest with a description into the json
        body
        
Simulate an odoo.exceptions.ValidationError
Should be translated into BadRequest with a description into the json
body
Simulate an odoo . exceptions . ValidationError Should be translated into BadRequest with a description into the json body
def validation_error(self):
        raise ValidationError(_("ValidationError message"))
def validation_error ( self ) : raise ValidationError ( _ ( "ValidationError message" ) )
Simulate an odoo.exceptions.ValidationError
Should be translated into BadRequest with a description into the json
body
Simulate an odoo . exceptions . ValidationError Should be translated into BadRequest with a description into the json body
"""
        Simulate an odoo.exceptions.ValidationError
        Should be translated into BadRequest with a description into the json
        body
        """
self