Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
812 มุมมอง

I have my controller code

@http.route('/application/submit', type='http', auth='public', website=True)
def submit_application(self, **vals):
print("***** Application Submitted *****")


I have the XML template with a form in which on submitting the form I need to call the controller function









...
data-name="Submit Button">


...


but on clicking the SUBMIT Button the terminal shows error message

2024-10-02 09:57:15,424 35576 INFO test_db_2 werkzeug: 127.0.0.1 - - [02/Oct/2024 09:57:15] "POST /application/submitundefined HTTP/1.1" 404 - 22 0.015 0.132


Is there any other library to be installed to support this? This was working fine with my old system. But it didn't work on the newly configured system. Both device have same community version of Odoo16.

อวตาร
ละทิ้ง

Could you confirm that the python files are imported in the init files

ผู้เขียน

ofcourse, I have called the python files (both controllers and models in its init file. Also called the directories in main init files

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ต.ค. 24
581
0
มิ.ย. 21
2942
2
ธ.ค. 19
3907
How to submit form from Qweb? แก้ไขแล้ว
1
ก.ย. 19
13039
0
ส.ค. 24
1009