# -*- coding: utf-8 -*-
from odoo import models, fields, api
class StudentDetails(models.TransientModel):
_name = 'wizto.form'
students_id = fields.Many2one('student.student', string='Student')
cust_order_no = fields.Integer(string='Customer Order No.')
remarks_id = fields.Char(string='Remarks Given')
#--------------------------------------------------------------
#Code for wizard
#--------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Create a Wizard and Call it in Button Click-->
<record id="wizto_form_form" model="ir.ui.view">
<field name="name">wizto.form.wizard</field>
<field name="model">wizto.form</field>
<field name="arch" type="xml">
<form string="Wizard to Form">
<group>
<field name="students_id"/>
<field name="cust_order_no"/>
<field name="remarks_id"/>
</group>
<footer>
<button string="Cancel" class="btn-secondary" special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="wizto_form_wizard" model="ir.actions.act_window">
<field name="name">Wizard to Form</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">wizto.form</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="wizto_form_form"/>
<field name="target">new</field>
</record>
</odoo>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
2
الردود
4563
أدوات العرض
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
2
سبتمبر 20
|
5961 | ||
|
1
سبتمبر 19
|
6443 | ||
|
3
سبتمبر 23
|
3379 | ||
|
2
سبتمبر 22
|
4267 | ||
|
2
سبتمبر 22
|
4345 |