14.How To Control Status bar And States Using Buttons || Odoo 14 Workflows || Odoo Statubar

Поделиться
HTML-код
  • Опубликовано: 8 май 2021
  • How to control states and status bar using buttons in Odoo. How to create buttons in Odoo. Change record state using button in odoo. Define workflows for records in Odoo 14. Control states using buttons in Odoo. Call python function on clicking buttons in Odoo. How to define buttons and hide buttons based on states in Odoo.
    Part 1: • 13.How To Add States A...
    Odoo 14 Playlist: • 2. How To Create Modul...
    Download the App: apps.odoo.com/apps/modules/14...
    Website: www.odoomates.tech/
    Github: github.com/odoomates
    Email : odoomates@gmail.com
    Facebook: / odoomate
    Twitter: / odoomates
    Support Us in Ko Fi : ko-fi.com/odoomates
  • НаукаНаука

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

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

    Your videos are SO helpful! Thank you!!! 😁😁

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

    lots of love bro ,the way you explain is very clear and its interesting .. i watch your videos only take care ,,, please keep on updating new videos
    🥰😇

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

      thanks for the support and kind words brother

  • @abdulazimatapy8872
    @abdulazimatapy8872 2 года назад +3

    thank you brother because you wait until call to praying finished , the way of explaining is great , go on with much succcess

  • @Albaraa-Omar
    @Albaraa-Omar Год назад +1

    Thank you Odoo Mates❤

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

    is odoo 12 -15 almost everything is same or which tutorials playlist should i choose as a odoo 15 beginner
    can i choose 12 and 14 playlist ,is that okay?

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

      will recommend you to start with odoo 14 playlist

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

    thank you

  • @ihsannuruliman3656
    @ihsannuruliman3656 2 года назад +2

    hi Odoo mates, I'm a bit confused. Sometimes we have to iterate over self object (for record in self) as when we use @self.depends decorator, and sometimes we call the self object directly as in this video when we define the action of the button. Probably you can clear this up thanks.

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

      Reason for iterating self over the for loop is to avoid the single ton error: ruclips.net/video/Rv44nFVn_5U/видео.html

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

      ruclips.net/video/PDR-epV7L-c/видео.html

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

    i have one doubt in the cancel button. when you click the first tym cancel we have a 3 options ("draft,done,confirm") but once control set done i again tried cancel button , get one option 'draft'

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

      i too confused in this topic please advice me

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

      not clear with the question, could you send us a small screen recording of the same to odoomates@gmail.com

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

    hello, can you teach me how to make each different state has its own submenu?

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

      you mean to show the different states records in different menus ? if so, see: ruclips.net/video/oLzVr8JYzf0/видео.html

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

    Hi, my fieldname is "state_select". So how can I put it to this place : states = "draft, done, confirm" ?

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

      you have to use reserved keyword state for the state field or you can hide it using the attrs option: see, ruclips.net/video/IXcrxXmedwM/видео.html

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

      @@OdooMates Thank you very much

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

      @@wanamal92

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

    I am getting this error on odoo 15. How can i solve.
    UncaughtPromiseError
    Uncaught Promise > While parsing modifiers for button: for modifier "invisible": Unknown field state in domain

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

      if you are doing development and getting this error, add field named state to the corresponding view

  • @ashaAhmed-hi5yl
    @ashaAhmed-hi5yl 3 года назад +1

    Why don't the buttons appear in the new fields I created after add the control statusbar

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

      you mean the buttons are not getting added in the header?

    • @ashaAhmed-hi5yl
      @ashaAhmed-hi5yl 3 года назад

      @@OdooMates no the buttons add in the header for patient already exist but when l create new patient the button don't show

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

    Hello , on the sale order after an order is confirmed during a new one it still the save button present, It will be better that it would be ready for the next new one instead of click save botton after confirm, how can I acomplish this?

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

      you mean to add a create button inside the form view ?

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

      @@OdooMates No, I will try to explain better, when it is being creating a new sale order or quotation and the confirm button is pressed the record is created but the save button still there which I think it is not needed any longer, I want to change this behavior so you are ready to start inmediatly another sale with the create button instead save button, right now you have to press save to be ready for a new record- I would be like "pressing" the save button autmatclly afer using confirm

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

      For this functionality in the odoo core you have to make necessary changes, and should have enough knowledge with odoo js and also make sure the changes won't affect any default functionalities

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

      @@OdooMates Thanks again, I understand you point, it is good to go with the flow of odoo and as I do not know js yet I will let this for later. I just wanted to save extra-click to users...

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

      Glad that you are trying to enhance the user experience of odoo and wish you can implement this once you move forward. Wishing you a good odoo days ahead brother

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

    mate take a break, the prayer time has come in :)

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

    doesn't work for me
    Error context:
    view: ir.ui.view(1408,)
    xmlid: view_patient_form
    view.model: hospital.patient

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

      Can I see the code that you have added

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

      @@OdooMates i dont know why but when i restart my pc and upgrade it works

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

      @@boualiyacine its because as you added new function, the function that get executed on button click

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

      @@OdooMates thank you very much for responding