Create a Wizard and Call it in Button Click Odoo

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2024

ความคิดเห็น •

  • @worldmayor2008
    @worldmayor2008 3 ปีที่แล้ว +3

    Once again your tutorials have saved me after hours of trying ! Many thanks again ! :)

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      happy to hear it

  • @MSFPMUSIC
    @MSFPMUSIC 4 ปีที่แล้ว +1

    Thanks for the video.. I did same as u did till 5:33.. But I didn't get even a button at that step 6:19.. And I continued doing same till ur video ends and getting error...can u pls help me... I'm on this task since 2 day..
    Pls...
    Thanks in advance
    I'm doing in Odoo 14 and getting error..
    The same I did in Odoo 13 and it gets working...
    Can u pls tell me what I need to change in Odoo v14..
    Because I have to do this on Odoo14

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว +1

      in 14, access rights has to set for transient models too, is that might be the reason for ths issue ?

    • @MSFPMUSIC
      @MSFPMUSIC 4 ปีที่แล้ว +1

      @@OdooMates Ok ,the issue is solved.. Thanks...

    • @MSFPMUSIC
      @MSFPMUSIC 4 ปีที่แล้ว +1

      @@OdooMates I have a query. can u pls help me..
      I have created a wizard for printing the report .. the wizard have two fields from date and to date... I have a join date in my model.. I have to print reports for those who joined in between the from date and two date... Now the wizard button prints all the records in my model as I didn't give the condition for that.. Can u pls say what condition does I need to give in the function.. I don't know how to give the condition as those are dates....
      I sent you a mail with the corresponding code and wizard.. Pls check that too
      Hope u will help me...
      Thanks in advance

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว +1

      @@MSFPMUSIC hope we discussed it over the email

    • @tayssirzrafi6794
      @tayssirzrafi6794 3 ปีที่แล้ว

      how did you solve this problem I have the same here !?

  • @Jose-tw9bl
    @Jose-tw9bl 4 ปีที่แล้ว +2

    Great explanation! Thank you!

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      Glad you enjoyed it!

  • @louloutibthomassin
    @louloutibthomassin 3 ปีที่แล้ว +1

    Hello, how would it be possible to set up the patient directly at the opening of the wizard ? With context ?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      Yes possible, you can pass default value in context

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      th-cam.com/video/b4SeEVm39pY/w-d-xo.html

  • @alejandroalain7305
    @alejandroalain7305 3 ปีที่แล้ว

    Hi Odoo Mates, how can i remove/hide the 'x' icon on the upper right of the wizard dialog?

  • @vanya91-89
    @vanya91-89 3 ปีที่แล้ว +1

    Thank you!! It was very helpful!

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      Glad it was helpful!

  • @hunain_ak
    @hunain_ak 5 ปีที่แล้ว +3

    Aesome tutorial, Do make a tutorial how to create new api's, and 3rd party integration.

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว +1

      odoo web service: th-cam.com/video/isjhwKAL63M/w-d-xo.html

  • @neilsenarnachellum166
    @neilsenarnachellum166 5 ปีที่แล้ว +1

    hello buddy I have a question. when I clicked on 'create appointment' button the new model pops up but i need to select the patient again. How can I automatically get the 'patient name' since the create appointment button is found in a specific patient form view? thanks

    • @OdooMates
      @OdooMates  5 ปีที่แล้ว

      You can pass default value in context see this : th-cam.com/video/XEs_01mDsCw/w-d-xo.html

  • @sadeequrhaman7948
    @sadeequrhaman7948 4 ปีที่แล้ว +1

    Thank you Sir very well explained.

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      thanks brother

  • @mudassarali9582
    @mudassarali9582 4 ปีที่แล้ว

    if i create the patient appointment through create button in wizard and store into appointment model,
    the record i have created through wizard in appointment , it will be temporary or permanent ?

  • @Kchbhi_34578
    @Kchbhi_34578 3 ปีที่แล้ว +1

    Hope you are in good health and thanks for the great tutorials.
    I have a question.
    How can we create/show a pop-up which contain some input fields in website???
    OR
    Show a pop-up on button click in odoo website which contains some input fields.

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      Using js and bootstrap modal you can do it.

    • @Kchbhi_34578
      @Kchbhi_34578 3 ปีที่แล้ว

      Is there any reference code or link???

  • @mokranililia7471
    @mokranililia7471 3 ปีที่แล้ว +1

    Can we inherit the wizard function from another model?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      Yes as in the same way we do for normal models

  • @winsen6002
    @winsen6002 3 ปีที่แล้ว +1

    Hey thanks man this tutorial really help me at works!

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      glad that it helped

    • @winsen6002
      @winsen6002 3 ปีที่แล้ว

      @@OdooMates but how to define price in wizard? It's like to pay something

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      @@winsen6002 you can add a field in wizard to enter the amount

  • @abdellahhajjam6654
    @abdellahhajjam6654 3 ปีที่แล้ว +1

    Thank you !! how can we do the same but for a notebook in for view ? Thank you again !!

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      you mean add a button in notebook page and open the wizard ?

    • @abdellahhajjam6654
      @abdellahhajjam6654 3 ปีที่แล้ว

      @@OdooMates i mean add a button and when we click it the notebook function ( editable=bottom) show up with one2many fields ......

  • @markjumpitguertin1806
    @markjumpitguertin1806 3 ปีที่แล้ว +1

    I get a lot of help watching some of your videos, but you do guys do anything besides copying code from other modules and hacking it up? I find it incredibly difficult to learn from things that say "just search in the code for this and then copy it and change it". It's just a recipe for repeating mistakes from someone else's code.

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      Don't feel it as good method ? Rather than creating from scratch, adding each line, it feels better to take any existing code as template and to build from there, sorry if the same feels difficult for you

    • @markjumpitguertin1806
      @markjumpitguertin1806 3 ปีที่แล้ว

      @@OdooMates The problem with this approach is that you are copying up old mistakes. I've seen it in a bunch of your videos, where you're copying up old (but still supported) ways of doing things. This also doesn't explain any of the WHY things need to be done, so when people run into something that they need to do that they can't just copy an example from ... they haven't really learned anything except how to search in the Odoo code base to find how it was done by someone else once upon a time, no matter if it was done well or correct.

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      If you see any non supported methods in any videos, feel free to comment it , so that we can pin that comment and that Will help others. As of my knowledge I haven't copied any non supported methods, Nice if you point it out. Also we have done tutorials in 12, 13 and 14

  • @EdwarRinaldo
    @EdwarRinaldo 3 ปีที่แล้ว +1

    hallo, i like your tutorial. many thanks, i have one question, how about the error when click create button ? can you more explained... many thanks

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      can you just send us the error,

    • @jamshadalalikkal9300
      @jamshadalalikkal9300 3 ปีที่แล้ว +1

      hi bro @Edwar Rinaldo, i think you have asked about the error displayed when clicking on create button in this video ,there is no method defined in the python file(wizard model) for create button that is placed in the wizard form,so there is no function executed when clicked on the button so that the error is occured.

    • @EdwarRinaldo
      @EdwarRinaldo 3 ปีที่แล้ว +2

      @@jamshadalalikkal9300 thats i mean, thanks

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      @@jamshadalalikkal9300 thanks for clarifying the doubt

    • @jamshadalalikkal9300
      @jamshadalalikkal9300 3 ปีที่แล้ว

      @@EdwarRinaldo u r welcome 👍

  • @shadanh3556
    @shadanh3556 2 ปีที่แล้ว +1

    Do you know how to get data on wizard from current record?

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว +1

      using context you can get active_id and then using browse you can take the current record

    • @shadanh3556
      @shadanh3556 2 ปีที่แล้ว +1

      @@OdooMates hello.. hope you feeling good.. I want to ask you is there any relation between project and helpdesk module? In odoo community

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      @@shadanh3556 Not sure, so i will recommend you to check the settings -> technical -> database structure -> models, open the both the models, and see the available fields and see whether there is ..

    • @shadanh3556
      @shadanh3556 2 ปีที่แล้ว

      @@OdooMates ok thank you!!🤍

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      @@shadanh3556 welcome

  • @ghassenmertah6997
    @ghassenmertah6997 2 ปีที่แล้ว

    thank you for your effort , just a a question please , how to change field value in a model from a button in wizard,

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      in wizard fetch the original record using active_id in context, then using write method, we can update.
      see: th-cam.com/video/icl4IEWWmuU/w-d-xo.html

  • @kennethlebron5844
    @kennethlebron5844 4 ปีที่แล้ว

    How can I use the button outside of that form, for example, in the tree view before the create Patient button.

  • @riquimbily7078
    @riquimbily7078 ปีที่แล้ว +1

    thx for the video

  • @supreetlaghate22
    @supreetlaghate22 4 ปีที่แล้ว +1

    Please show how you created appointment logic also for wizard

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      This one: th-cam.com/video/Jssb15ADeyg/w-d-xo.html ?

    • @supreetlaghate22
      @supreetlaghate22 4 ปีที่แล้ว +1

      Thanku so much :)

  • @ihzaputra8054
    @ihzaputra8054 10 หลายเดือนก่อน

    hi there
    is there any way to create a wizard in a duplicate button from odoo?

  • @khadijatouil8044
    @khadijatouil8044 4 ปีที่แล้ว +1

    thanks for this videos. i tried to create a wizard for import a csv.file, so i follow the steps in this video but it does not work. could you help please?

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      Sure, so the wizard is not opening ?

  • @mahmoudkhodeir531
    @mahmoudkhodeir531 5 ปีที่แล้ว +1

    thank you

  • @abdulgafur3936
    @abdulgafur3936 4 ปีที่แล้ว

    why you haven't showed create & cancel button code for creating & canceling appointment?

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      Create button will come by default, for adding buttons in the form see: th-cam.com/video/3PA7XAky8mA/w-d-xo.html

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      For creating record from code: th-cam.com/video/Jssb15ADeyg/w-d-xo.html

    • @abdulgafur3936
      @abdulgafur3936 4 ปีที่แล้ว

      @@OdooMates Thank you

  • @fuhovu2225
    @fuhovu2225 4 ปีที่แล้ว +1

    where iss test_name def???

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      May i know in which minute in the video this test_name is shown ...

    • @ephanitor6741
      @ephanitor6741 4 ปีที่แล้ว

      13:20 This was just a placeholder and gets changed later

  • @mohammadsaqib1400
    @mohammadsaqib1400 4 ปีที่แล้ว +1

    best eeffort,keep it up

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      If you feel the videos are helpful, please like the videos and support us by subscribing the channel and referring it with Odoo friends :)

  • @webcoder7157
    @webcoder7157 4 ปีที่แล้ว

    How we can get Patient in wizard of current open record doctor's Please describe about that Thanks.

  • @abhinavm.s1410
    @abhinavm.s1410 4 ปีที่แล้ว +1

    Nice✌️

  • @AdeshPaul
    @AdeshPaul 4 ปีที่แล้ว +1

    Thanks.

  • @thisuraweerakkody3841
    @thisuraweerakkody3841 4 ปีที่แล้ว +1

    My appointment from wont show the dropdown of many2one field patient and same for the wizard the menu to one dropdown wont show my created patients

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      you mean records are not shown in many2one fields ?

    • @thisuraweerakkody3841
      @thisuraweerakkody3841 4 ปีที่แล้ว +1

      @@OdooMates just one field in the appointments form there is a many2one field showing the patient and the field in the wizard which shows patients records are not showing only create and edit is there but my other many2one fields working fine

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      @@thisuraweerakkody3841 is there any domain ?

    • @thisuraweerakkody3841
      @thisuraweerakkody3841 4 ปีที่แล้ว

      @@OdooMates no domain

    • @thisuraweerakkody3841
      @thisuraweerakkody3841 4 ปีที่แล้ว +1

      @@OdooMates this happens due tomy active field in the model I guess

  • @omarahmed299
    @omarahmed299 4 ปีที่แล้ว +1

    tutorial about :
    1 - what is api and how to create it
    2 - ORM

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว +1

      Regarding Odoo ORM we are planning one soon

    • @omarahmed299
      @omarahmed299 4 ปีที่แล้ว +1

      @@OdooMates thanks to the best Odoo channel

  • @mohamedboudekak8574
    @mohamedboudekak8574 4 ปีที่แล้ว +1

    man u're so great thanks

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว +1

      Thanks for the comments.. Hope you will support us by referring the channel to your Odoo friend's :)

    • @mohamedboudekak8574
      @mohamedboudekak8574 4 ปีที่แล้ว +1

      @@OdooMates of course

  • @italaa86
    @italaa86 5 ปีที่แล้ว +1

    Thanks man

    • @OdooMates
      @OdooMates  5 ปีที่แล้ว

      Like the videos and subscribe the channel and support us

  • @charlesdonboscoa4041
    @charlesdonboscoa4041 4 ปีที่แล้ว

    i tried type= action but keyError :False is comining

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      We have replied in the email, keyerror can be of many reasons

    • @charlesdonboscoa4041
      @charlesdonboscoa4041 4 ปีที่แล้ว

      @@OdooMates I solve it putting instead of {} use() solving this erro odoo13 sir