Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
3810 Widoki

How can i take online applications from outsiders for admissions.

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

Any help plz? 

Awatar
Odrzuć
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

Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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/.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 22
5688
1
mar 15
4801
0
mar 15
4348
0
maj 25
872
1
kwi 25
926