How to Create a Wizard and Use the Transient Model in Odoo 17 | Step-by-Step Guide — Transcript
Full transcript
- 0:01hello so welcome to my YouTube channel
- 0:03so uh today we will learn how to create
- 0:06the wizard okay and what is the
- 0:08transient model and how we can use the
- 0:10trans model in the Udo okay so simply
- 0:15click on
- 0:16the here now last time I'm create one
- 0:20mod student and all the things here so
- 0:24today I create a one wiard through the
- 0:28button or you can open the wizard
- 0:31through the button or menus so today I'm
- 0:35create a wizard from the menu okay let's
- 0:38go to the
- 0:41code me open my
- 0:44modules go to the student management so
- 0:48create a one folder in the
- 0:51module folder name is a
- 0:54visard
- 0:56res then
- 1:02[Music]
- 1:04create one
- 1:11file
- 1:13record
- 1:16student
- 1:22stent basically I I will update the
- 1:25recort through the visard okay
- 1:28so this file need to Link in here in
- 1:31internal unit
- 1:33file
- 1:35from
- 1:36import student wizard okay after that
- 1:40the wizard link here external init file
- 1:47import then
- 1:50visard okay so
- 1:54now
- 1:58import models
- 2:00fields and API then create one class
- 2:05this class name
- 2:07student
- 2:10wizard this model will be transient
- 2:14model the transend model why we create
- 2:17him here whenever you open the visard or
- 2:20create the visard so you need to create
- 2:23a basically you need to use Transit
- 2:26model trans model used for uh data
- 2:30temperary actually data is not sa in
- 2:32your database we see data current on
- 2:35your window that is the data only once
- 2:38you close the windows or once you close
- 2:42the menus the data will be remove
- 2:45automatically deleted in the system okay
- 2:47so data basically not saved in the
- 2:50database so click here
- 2:53and create the
- 2:56object student do result
- 3:01and let's
- 3:03see now I want to add
- 3:05here some fields which is copying from
- 3:10the student
- 3:12form see I am want to add that only okay
- 3:18so simply copy and paste here also
- 3:22create a
- 3:25file
- 3:27student visard
- 3:33G
- 3:38gxm now start ending
- 3:43tab
- 3:45data and copy the
- 3:50XML that one okay okay this one copy
- 3:56form VI copy
- 4:00and then x
- 4:03copy copy two things on paste
- 4:08here and change the
- 4:13IDS student
- 4:16wiard okay
- 4:21student student visard copy
- 4:24here paste
- 4:27here remove the preview
- 4:31and one more field need to add here this
- 4:35is called Target Target means when you
- 4:39click on the this action the window
- 4:42popup will become as a
- 4:46name okay so write here
- 4:53wizard so I'm adding this
- 4:56field name age gender name gender name
- 5:04iser
- 5:09remove
- 5:11okay after that address phone number
- 5:14email image left remove
- 5:22address phone
- 5:25number
- 5:28em phone
- 5:36email student
- 5:38ring that will will be add in the home
- 5:43view
- 5:45okay and
- 5:48then
- 5:58correct so let's
- 6:00this file need to link in the Manifest
- 6:02file go to the Manifest and duplicate
- 6:07and here after the data file chain the
- 6:12Reser
- 6:14then that's it only okay now upgrade the
- 6:19module this module will be upgraded from
- 6:22the backend
- 6:23side click on the
- 6:26configuration right here and that's mod
- 6:28name
- 6:31go to the
- 6:32refresh so I want to update the record
- 6:36from here so basically I'm add a button
- 6:39here button name will be update data
- 6:43okay so I'm adding the go to the student
- 6:48form
- 6:50and copy this
- 6:54one and write here this way and after
- 6:58that D inside this bracket need to paste
- 7:03xon id xon id
- 7:07okay
- 7:10or the button name will be
- 7:14update
- 7:17data and button type will be
- 7:20accent
- 7:22okay now upgrade the
- 7:27module so my button it will be showing
- 7:31here click on the update so you okay I'm
- 7:35not access I'm not give the access this
- 7:40object in the security file so I need to
- 7:43give access in the security file simply
- 7:46duplicate then paste here and give the
- 7:56access after that also
- 8:00[Music]
- 8:01here and
- 8:04that's then up
- 8:06module
- 8:08refresh P click on the update so my
- 8:11popup is coming this is called
- 8:13bizard okay now I'm change the ID like I
- 8:17want to change this this you can see
- 8:19back inside student name is our CL our
- 8:22hand right here
- 8:24um Imran
- 8:28Imran okay
- 8:30or select here and enter the H2 and
- 8:33address
- 8:35is main
- 8:38room okay simply and something right
- 8:42here on your bus that save if have click
- 8:47on Save what happen so I only save but
- 8:50record is not update because the data
- 8:53only saved but if this data is not saved
- 8:56in the backend this button is by default
- 8:59is coming in the pop okay so need to add
- 9:03one button in the
- 9:05visard okay so after the seat add button
- 9:11let me open the
- 9:14button so first copy
- 9:23this let open this is the two
- 9:26t after the seat past here start T
- 9:31footer button name will be
- 9:35update update
- 9:38data data okay also string name will be
- 9:42so
- 9:43update
- 9:45data okay this button will be accent
- 9:48type and now create this button
- 9:52here da and this simply I'm right here
- 9:57three for checking is working or not
- 10:02update data so nowr the
- 10:06module and refresh the
- 10:09pce and click on the button so my button
- 10:13will be showing here you can see here
- 10:15the update button so I'm randomly write
- 10:18here now click on the update so go to
- 10:21the P charm now my Buton is working so
- 10:27now now after that I want to update the
- 10:30records okay in the current open object
- 10:34open record okay so need
- 10:37to find before active
- 10:40ID so we can search the current recort
- 10:44from the active ID okay how we can get
- 10:47the active ID so you can get the active
- 10:50ID that
- 10:52way okay so I'm WR here the variable
- 10:57active ID is equals to
- 10:59then this oh and
- 11:05search
- 11:08student
- 11:10okay
- 11:12self. EnV and write here
- 11:18student dot student and
- 11:23also
- 11:27browse browse
- 11:30so report will be coming so I'm print
- 11:34the student
- 11:37simple student then upgrade the module
- 11:41checking student is catching the with
- 11:44current ID or not okay simply p and
- 11:47click the student is coming student ID
- 11:51is two and this is student ID you can
- 11:55see here ID is to okay now
- 11:59I want to update the data
- 12:02simply
- 12:07student
- 12:09or
- 12:11student and
- 12:13[Music]
- 12:16student right
- 12:20sod
- 12:21dot
- 12:24name equal to self. name
- 12:34the
- 12:38email student
- 12:45ID
- 12:47student do
- 12:53is sell is only that feel only update
- 12:59remove right now only thing F update
- 13:01name email or age okay so upgrade the
- 13:07module then go here you can see the name
- 13:10is a I'm right here the
- 13:13rul and age
- 13:1520 also 20 is there I'm right here 15
- 13:19and the second one is the
- 13:23email
- 13:25AK
- 13:26gmail.com then click on update
- 13:29so here you can see that data is update
- 13:32name also change there is before is the
- 13:35name here is the a instead of right now
- 13:39the and also the age and
- 13:42also so you can use the visard like this
- 13:46way okay from the buttons or you can
- 13:50open the visard like from the menu only
- 13:54go to the menu or here you can give only
- 13:58xtion ID
- 13:59simply and open the resort through the
- 14:03menu this is the simple way how to
- 14:06create the menu Vis in theur okay so
- 14:11this thing to thing is completed after
- 14:14that we we will learn in deeply QB
- 14:18template language
- 14:20okay so thank you if you have any
- 14:23question please write the comment in the
- 14:26video section
About this transcript
This page contains the full transcript of How to Create a Wizard and Use the Transient Model in Odoo 17 | Step-by-Step Guide by Odoo Tech , generated from the public captions YouTube serves with the video. The transcript has 1,239 words across 244 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.