I want to get form values through controller,
As I want values of priority field
So I wrote below code:
class Assets(http.Controller):
@http.route('/helpdesk/accenture-care-1/submit', auth='public',website=True)
def from_submit(self, **kw):
print('>>>>>>>>>>>>>>test123', kw)
But I am getting blank value in kw,
So how to get value?Type a message
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
2
Replies
6373
Views
you have to create HTML form in the page with action (/helpdesk/accenture-care-1/submit) and button type submit like
ref: https://www.tutorialspoint.com/How-to-use-the-submit-button-in-HTML-forms
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
Can you cross check the template and controller with the answer given here: https://www.odoo.com/forum/help-1/question/how-to-get-web-form-values-into-controllers-in-odoo-for-custom-login-functionality-128940