Create a Wizard and Call it in Button Click Odoo

Поделиться
HTML-код
  • Опубликовано: 24 авг 2019
  • How to create a wizard in Odoo and call the same wizard in Button click in Odoo. Generate wizard in Odoo.
    Email: odoomates@gmail.com
  • НаукаНаука

Комментарии • 103

  • @worldmayor2008
    @worldmayor2008 3 года назад +3

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

  • @Jose-tw9bl
    @Jose-tw9bl 4 года назад +2

    Great explanation! Thank you!

    • @OdooMates
      @OdooMates  4 года назад

      Glad you enjoyed it!

  • @vanya91-89
    @vanya91-89 2 года назад +1

    Thank you!! It was very helpful!

    • @OdooMates
      @OdooMates  2 года назад

      Glad it was helpful!

  • @hunainak
    @hunainak 4 года назад +3

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

    • @OdooMates
      @OdooMates  3 года назад +1

      odoo web service: ruclips.net/video/isjhwKAL63M/видео.html

  • @sadeequrhaman7948
    @sadeequrhaman7948 3 года назад +1

    Thank you Sir very well explained.

  • @mahmoudkhodeir531
    @mahmoudkhodeir531 5 лет назад +1

    thank you

  • @alejandroalain7305
    @alejandroalain7305 3 года назад

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

  • @winsen6002
    @winsen6002 2 года назад +1

    Hey thanks man this tutorial really help me at works!

    • @OdooMates
      @OdooMates  2 года назад

      glad that it helped

    • @winsen6002
      @winsen6002 2 года назад

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

    • @OdooMates
      @OdooMates  2 года назад

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

  • @mudassarali9582
    @mudassarali9582 3 года назад

    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 ?

  • @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

  • @neilsenarnachellum166
    @neilsenarnachellum166 4 года назад +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  4 года назад

      You can pass default value in context see this : ruclips.net/video/XEs_01mDsCw/видео.html

  • @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???

  • @italaa86
    @italaa86 5 лет назад +1

    Thanks man

    • @OdooMates
      @OdooMates  5 лет назад

      Like the videos and subscribe the channel and support us

  • @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 :)

  • @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 ?

  • @AdeshPaul
    @AdeshPaul 4 года назад +1

    Thanks.

  • @riquimbily7078
    @riquimbily7078 Год назад +1

    thx for the video

  • @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 года назад

      ruclips.net/video/b4SeEVm39pY/видео.html

  • @kennethlebron5844
    @kennethlebron5844 3 года назад

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

  • @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 3 года назад +1

    Nice✌️

  • @supreetlaghate22
    @supreetlaghate22 4 года назад +1

    Please show how you created appointment logic also for wizard

    • @OdooMates
      @OdooMates  4 года назад

      This one: ruclips.net/video/Jssb15ADeyg/видео.html ?

    • @supreetlaghate22
      @supreetlaghate22 4 года назад +1

      Thanku so much :)

  • @MSFPMUSIC
    @MSFPMUSIC 3 года назад +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  3 года назад +1

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

    • @MSFPMUSIC
      @MSFPMUSIC 3 года назад +1

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

    • @MSFPMUSIC
      @MSFPMUSIC 3 года назад +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  3 года назад +1

      @@MSFPMUSIC hope we discussed it over the email

    • @tayssirzrafi6794
      @tayssirzrafi6794 3 года назад

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

  • @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 👍

  • @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

  • @ihzaputra8054
    @ihzaputra8054 5 месяцев назад

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

  • @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 ......

  • @ghassenmertah6997
    @ghassenmertah6997 Год назад

    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  Год назад

      in wizard fetch the original record using active_id in context, then using write method, we can update.
      see: ruclips.net/video/icl4IEWWmuU/видео.html

  • @markjumpitguertin1806
    @markjumpitguertin1806 2 года назад +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  2 года назад

      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 2 года назад

      @@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  2 года назад

      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

  • @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: ruclips.net/video/3PA7XAky8mA/видео.html

    • @OdooMates
      @OdooMates  4 года назад

      For creating record from code: ruclips.net/video/Jssb15ADeyg/видео.html

    • @abdulgafur3936
      @abdulgafur3936 4 года назад

      @@OdooMates Thank you

  • @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

  • @thisuraweerakkody3841
    @thisuraweerakkody3841 3 года назад +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  3 года назад

      you mean records are not shown in many2one fields ?

    • @thisuraweerakkody3841
      @thisuraweerakkody3841 3 года назад +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  3 года назад

      @@thisuraweerakkody3841 is there any domain ?

    • @thisuraweerakkody3841
      @thisuraweerakkody3841 3 года назад

      @@OdooMates no domain

    • @thisuraweerakkody3841
      @thisuraweerakkody3841 3 года назад +1

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

  • @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

  • @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

  • @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