pycharm-odoo icon indicating copy to clipboard operation
pycharm-odoo copied to clipboard

Model reference in http.route()

Open trinhanhngoc opened this issue 2 years ago • 0 comments

@http.route(['/survey/start/<model("survey.survey"):survey>',
             '/survey/start/<model("survey.survey"):survey>/<string:token>'],
            type='http', auth='public', website=True)
def start_survey(self, survey, token=None, **post):
    pass

trinhanhngoc avatar Aug 13 '22 15:08 trinhanhngoc