47. How To Control Statusbar Using Buttons In Odoo 15 || Odoo 15 Workflow || Odoo 15 Development

  Рет қаралды 8,967

Odoo Mates

Odoo Mates

Күн бұрын

How to control statusbar using buttons in Odoo. Create workflow in Odoo. How to add statusbar and control the states using buttons in Odoo. Creating workflow for record in Odoo 15. Odoo 15 development tutorials. Hide buttons based on states. States attribute in Odoo. Control button visibility based on states in Odoo 15.
Points to learn:
1. Removing clickable option from statusbar widget
2. Adding buttons
3. Hiding buttons based on state
4. Giving blue color for odoo buttons
5. Tracking for fields
6. Changing record state using python function
NOTES:
First Video Of Statusbar: • 31. How To Add Statusb...
Tracking For the States is not worked as i have given tracking=True for doctor_id field
Odoo 15 Playlist: • How To Configure Odoo1...
Website: www.odoomates....
Instgram: / odoomates
Github: github.com/odo...
Email : odoomates@gmail.com
Facebook: / odoomate
Twitter: / odoomates
Support Us in Ko Fi : ko-fi.com/odoo...

Пікірлер: 35
@SamirSELLAMI
@SamirSELLAMI 2 жыл бұрын
Easy to follow tutorials, keep going ✌️
@OdooMates
@OdooMates 2 жыл бұрын
Glad to hear it
@alielnagar2
@alielnagar2 Жыл бұрын
very useful ,,,,thank you
@OdooMates
@OdooMates Жыл бұрын
You are welcome
@vaghelavikram9821
@vaghelavikram9821 2 жыл бұрын
esy to your tutorial thanks
@OdooMates
@OdooMates 2 жыл бұрын
thanks for the support 🥰🥰🥰
@aunnfriends
@aunnfriends 2 жыл бұрын
the "states" list is 'space' sensitive: states="draft, in_consultation" will not work for in_consultation because there is ' ' before it. It has to be without space: states="draft,in_consultation"
@OdooMates
@OdooMates 2 жыл бұрын
thanks for sharing brother
@tharissanajwa7712
@tharissanajwa7712 2 жыл бұрын
THANKSS
@OdooMates
@OdooMates 2 жыл бұрын
chat.whatsapp.com/IVunyRozv902SJStWlSxJz
@aunnfriends
@aunnfriends 2 жыл бұрын
the xml action_done is working well without confusing with other using the same name action_done because of type="object" which makes action_done associated with the model only but if we need another function with a slightly different purpose for the same model a different name, I think.
@khaledelsafy
@khaledelsafy 2 жыл бұрын
Many Thanks
@OdooMates
@OdooMates 2 жыл бұрын
Welcome brother ❤️❤️
@borisveselov8421
@borisveselov8421 Жыл бұрын
I understand about controlling the statusbar. But is there a way to display how many items are in each stage of the status, like how many are in draft stage, how many are in completed?
@sage.swagat
@sage.swagat Жыл бұрын
Hello fellow leaners, I have found that we can add colors to the button like class="oe_highlight" as follows: //grey in white //blue //inverted grey // dark //light //link Hope this helps 😇
@OdooMates
@OdooMates Жыл бұрын
thanks for sharing
@soysergiodev23
@soysergiodev23 Жыл бұрын
I tried but it doesn't work
@soysergiodev23
@soysergiodev23 Жыл бұрын
I have this error when I add states="draft. Promesa desconocida > While parsing modifiers for button: for modifier "invisible": Unknown field state in domain
@OdooMates
@OdooMates Жыл бұрын
do you have state field in your model and add the field in the view ?
@danakaplan7738
@danakaplan7738 Жыл бұрын
I have it with name status do I need to change from states to statuses ???? @@OdooMates
@ShadHastam
@ShadHastam Жыл бұрын
Thanks a lot
@OdooMates
@OdooMates 7 ай бұрын
Happy to help
@rupeshpatil5219
@rupeshpatil5219 2 жыл бұрын
Please also make videos on odoo api
@OdooMates
@OdooMates 2 жыл бұрын
sure we will add in odoo15, till then see: kzbin.info/www/bejne/rXjZpoWYeN6sqs0
@rupeshpatil5219
@rupeshpatil5219 2 жыл бұрын
@@OdooMates You are doing really great work Keep it up and thanks 😊
@OdooMates
@OdooMates 2 жыл бұрын
Thansk for the support
@jatinkant1711
@jatinkant1711 2 жыл бұрын
hello sir i am getting eror when i am using states = "in_consultation "
@danakaplan7738
@danakaplan7738 Жыл бұрын
me as well
@kaliuta
@kaliuta 2 жыл бұрын
tracking=True for the field state and not doctor_id
@OdooMates
@OdooMates 2 жыл бұрын
Yes, thanks for noting it ❤️
@AmirAli-tl4sg
@AmirAli-tl4sg 2 жыл бұрын
action_cancels is not a valid action on schools.appointment
@OdooMates
@OdooMates 2 жыл бұрын
did you define a function named action_cancels in the model ?
@AmirAli-tl4sg
@AmirAli-tl4sg 2 жыл бұрын
@@OdooMates def action_cancels(self): for rec in self: rec.state = 'cancel' yes I did
@AmirAli-tl4sg
@AmirAli-tl4sg 2 жыл бұрын
@AmirAli-tl4sg
@AmirAli-tl4sg 2 жыл бұрын
@@OdooMates it's work > restaring the server
How to Add a Status Bar in Odoo 16 || Odoo 16 Technical Course
14:40
Odoo Studio: approvals and workflows
27:09
Odoo
Рет қаралды 23 М.
OpenAI Embeddings and Vector Databases Crash Course
18:41
Adrian Twarog
Рет қаралды 542 М.
Filter rules and domains | Odoo Studio
7:02
Odoo
Рет қаралды 10 М.