I have a web form in my odoo website I want to add some new fields to this form, I tried to add a checkbox with the flowing code But unfortuiontly checkbox value always saved as false, please help ...
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
This is the code used:
<code>
<div t-attf-class="form-group #{error and 'category' in error and 'has-error' or ''}">
<label class="col-md-3 col-sm-4 control-label" for="name">IP Phone </label>
<div class="col-md-7 col-sm-8">
<input type="checkbox" name="x_ipphone" value="{{x_ipphone}}"/>
</div>
</div>
</code>
Actually i want to add additional field to "Website Support Module"
i already add the new field "x_ipphone" and "x_problem", it works fine in Form View
but it doesn't work or responding in the website qweb form where the user try to add a new support ticket
how can i add the new customized fields to the qweb form.
According to your Odoo version, field starting with x_ or field existing in model can be automatically save.
But if your field is call ip_phone, it's probably a customization in python.
So you need to override the controller
or match exactly the same name in odoo 9, but you need to whitelist the field before.
Which version are you using ?
8 ? 9c ? 9e ? ...?
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