Hi guyz,
I try to record my custom' form but i don't how to create a dictionnary ?
Can i do sommething like that :
@http.route('/coopaname_helpdesk/post_form_ticket/<string:model_name>', methods=['POST'], type = 'http', auth='public', website= True )
def website_form(self, model_name, **kwargs):
data =
{ 'my_first_input' : '%s', 'my_second_input' : '%s' }
and record with :
return request.env.cr['my_data_table_name'].create(data)
Thanks for yours helps my friends,
Best regards