How to get value from input tag in python ? I've created input tag with id and name, but whatever i try to get it in python( tried self.tag_id or self.tag_name ) i get error that object like this does not exist.
Below code of my xml.
<record model="ir.ui.view" id="training_test_form_view">
<field name="name">Training Test Form View</field>
<field name="model">training.test_online</field>
<field name="priority" eval="5"/>
<field name="arch" type="xml">
<form string="Training Form" create="false"
delete="false">
<sheet>
<field name="question" nolabel="1" readonly="1"/>
<group>
<input id="cliked_1" name="answer" type="radio"> <field name="answer1" nolabel="1" readonly="1"/></input>
<input id="cliked_2" name="answer" type="radio"> <field name="answer2" nolabel="1" readonly="1"/></input>
<input id="cliked_3" name="answer" type="radio"> <field name="answer3" nolabel="1" readonly="1"/></input>
<input id="cliked_4" name="answer" type="radio"> <field name="answer4" nolabel="1" readonly="1"/></input>
</group>
<button name="next" type="object" />
</sheet>
</form>
</field>
</record>
and exmaple code in python which is giving error
@api.one
def next(self):
print self.clicked1
Do i need to get it by self, context, js, or how ?