Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Binding checkbox with a customized field in Qweb form

By
Faris
on 3/16/16, 2:56 PM 392 views

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

0
Faris
On 3/17/16, 3:38 AM

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>

0
Faris
On 3/17/16, 3:43 AM

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.

 

0

Jérémy Kersten (jke)

--Jérémy Kersten (jke)--
2993
| 3 2 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
On 3/16/16, 5:00 PM

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/16/16, 2:56 PM
Seen: 392 times
Last updated: 3/17/16, 3:43 AM