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.

2

Button not working inside Wizard one2many fields

By
Karthik Arumugam
on 7/24/15, 1:22 AM 543 views

I am new to openerp , i cant able to enable a button inside the one2many field of wizards, i placed the code below for your reference


openerp>
	<data>
		<record id="test_wizard" model="ir.ui.view">
			<field name="name">Test Wizard</field>
			<field name="model">test.wizard</field>
			<field name="arch" type="xml">
				<form string="Test Wizards" version="7.0">
					<header>
						<button name="ok_butt" string="Purchase" type="object" />
						<button name="cancel_butt" string="Cancel" type="object" />
					</header>
					<sheet>
						<center>
							<label string="Calculate Total" name="Total" />
						</center>
						<group>
							<field name="s1" />
							<field name="s2" />
							<field name="s3" />
							<field name="s4" />
							<field name="s5" />
						</group>
						<notebook>
							<page string="Students">
								<field name="student_ids">
									<form string="Student Lines" version="7.0">
										<group>
											<field name="name" />
											<button name="confirm" string="Confirm" class="oe_highlight"
												icon="gtk-execute" clickable="True" disabled = "False"/>
										</group>
									</form>
									<tree string="Student lines">
										<field name="name" />
										<button name="confirm" string="Confirm" class="oe_highlight"
											icon="gtk-execute" clickable="True"/>
									</tree>
								</field>
							</page>
						</notebook>
						<footer>
							<button name="test_ok" string="print" type="object" class="oe_highlight"
								icon="gtk-execute" />
						</footer>
					</sheet>
				</form>
			</field>
		</record>
	</data>
</openerp>
 


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: 7/24/15, 1:22 AM
Seen: 543 times
Last updated: 8/3/15, 9:18 AM