Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
3817 Tampilan

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
Buang
Penulis

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

Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Nov 22
5695
1
Mar 15
4813
0
Mar 15
4365
0
Mei 25
886
1
Apr 25
939