Untitled
raw download clone
TEXT
views 29
,
size 2579 b
<odoo>
 	<data>
		<record id="webkul_learning_form" model="ir.ui.view">
			<field name="name">webkul.learning.form</field>
			<field name="model">webkul.learning</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
					<form string="Webkul Form">
						<group>
							<field name="name"/>
                            <field name="age"/>		
							<field name="designation"/>
							<field name="gender"/>
							<field name="date_of_birth"/>
							<field name="address" />
							<field name="image"/>					
						</group>
					</form>
			</field>
		</record>


<record id="webkul_learning_tree" model="ir.ui.view">
			<field name="name">webkul.learning.tree</field>
			<field name="model">webkul.learning</field>
			<field name="type">tree</field>
			<field name="arch" type="xml">
					<tree>
							<field name="name"/>
                            <field name="age"/>		
							<field name="designation"/>
							<field name="gender"/>
							<field name="date_of_birth"/>
							<field name="address" />
							<field name="image"/>							
						</tree>
			</field>
</record>
<record model="ir.ui.view" id="webkul_student_view_kanban">
	<field name="name">webkul.learning.kanban</field>
			<field name="model">webkul.learning</field>
			<field name="type">kanban</field>
			<field name="arch" type="xml">
			<kanban>
				<field name="name"/>
				<field name="image"/>
				<field name="designation"/>
				<templates>
					<t t-name="kanban-box">
					<div class="oe_kanban_global_click">
					  <div class="o_kanban_image">
					  	<img t-att-src="kanban_image('webkul_learning','image',record.id.value)"/>
						</div>
						<div class="oe_kanban_details">
							<strong>Name: <field name="name"/></strong>

						</div>
						<div class="oe_kanban_details">
							<strong>Desig: <field name="designation"/></strong>
						</div>
						</ div>
						</t>
						</templates>
						</kanban>
						</field>



</record>







<record id="webkul_learning_action" model="ir.actions.act_window">
			<field name="name">Employee</field>
			<field name="res_model">webkul.learning</field>
			<field name="view_mode">tree,form,kanban</field>
			
			
			<field name="view_id" ref="webkul_learning_tree"/>
</record>





<menuitem name="Webkul" id="webkul_learning_menu_root"/>
<menuitem name="Employee"
		id="webkul_learning_menu_student"
		parent="webkul_learning.webkul_learning_menu_root"
		action="webkul_learning.webkul_learning_action"
	/>
</data>
</odoo>
close fullscreen
Login or Register to edit or fork this paste. It's free.