Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
3763 Vistas

How can i take online applications from outsiders for admissions.

And then accept to enroll the students or reject the application? 

Any help plz? 

Avatar
Descartar
Autor

Thank you very much Niyas Raphy,

Can you plz help why i get messages "3 karma required" while posting a question and "8 karma required while commenting" I couldn't reply you in comment on ur answer

Mejor respuesta

Hi,

You can create a page for the admission purpose on the website and then upon clicking the submit button of the form,  you will get the entered values in the route of the corresponding page.

From this route, you can create a record in the backend.

Creating template:


<template id="support_submit_ticket" name="Submit Support Ticket" page="True">
<form action="/support/ticket/process" method="POST" class="form-horizontal mt32" enctype="multipart/form-data">
<div class="form-group">
<div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
<button class="btn btn-primary btn-lg">Submit Ticket</button>
</div>
</div>
</form>
</template>


Then upon clicking the submit button, you will get the entered values in the route: /support/ticket/process

@http.route('/support/ticket/process', type="http", auth="public", website=True, csrf=True)
def support_process_ticket(self, **kwargs):
# in **kwargs you will get values from the form
# using this you can create record in the backend
values = {
# set the values
}
request.env['model_name'].sudo().create(values)
return werkzeug.utils.redirect("/support/ticket/thanks")


For more you can have a look at this module available in the odoo apps store :  https://www.odoo.com/apps/modules/10.0/website_support/


Thanks

Avatar
Descartar
Mejor respuesta

This module might help you streamline the website form creation a bit: https://www.odoo.com/apps/modules/10.0/cms_form/

Or as Niyas Raphy stated you can create your own templates by getting some inspiration from existing modules like https://www.odoo.com/apps/modules/11.0/website_hr_recruitment/.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
nov 22
5644
1
mar 15
4737
0
mar 15
4267
0
may 25
827
1
abr 25
861