Control States and Statusbar Using Buttons in Odoo12 - Workflow

  Рет қаралды 11,556

Odoo Mates

Odoo Mates

Күн бұрын

Пікірлер: 37
@balajib7219
@balajib7219 2 жыл бұрын
Hey Thanks for this Tutorial. And what if I need a specific button in two states?
@OdooMates
@OdooMates 2 жыл бұрын
states="state1,state2"
@balajib7219
@balajib7219 2 жыл бұрын
@@OdooMates Thank you for your immediate response. Your tutorials are the life saver for me recently. Keep going mates. Thanks again :))
@OdooMates
@OdooMates 2 жыл бұрын
Thanks for the support bro
@cherryAndPapa
@cherryAndPapa 3 жыл бұрын
Thank you!
@OdooMates
@OdooMates 3 жыл бұрын
welcome brother :)
@ipbastola
@ipbastola 4 жыл бұрын
Thank you for the amazing tutorials. Could you please also explain the workflow of "Cancel" state and how to? 🙏🏼😊
@OdooMates
@OdooMates 2 жыл бұрын
thanks for the support
@henryjiang1554
@henryjiang1554 3 жыл бұрын
Hi odoo mates Thanks for the great video, can you explain why we use => for r in self: r.state = 'xxx' instead of using self.state = 'xxx' to change the state for current record.
@OdooMates
@OdooMates 3 жыл бұрын
To avoid single ton error
@OdooMates
@OdooMates 3 жыл бұрын
See: kzbin.info/www/bejne/iKeXZaF8i9OSa7c
@BMESSIASMONTEIRO
@BMESSIASMONTEIRO 3 жыл бұрын
Hello Odoo Mates, your approach is ok but in a real situation, these statuses should be more effective, I mean...they must be updated into the database. For instance, "draft" appointment should be marked into a column in a table and just marked as "confirmed" when the patient reply a call or an email. By the way, this confirmation should be kept a record as a note. what do you suggest? thanks.
@OdooMates
@OdooMates 3 жыл бұрын
Yes, your suggestion are correct. We will try to bring the real cases examples more in the upcoming videos. Thanks for the suggestion
@theoriginallukey
@theoriginallukey 3 жыл бұрын
Your videos are so helpful, thank you! Can I change the status just by clicking directly on the status bar? I don' t need to use the buttons/actions
@OdooMates
@OdooMates 3 жыл бұрын
Yes you can! set clickable="True" along with the state field
@theoriginallukey
@theoriginallukey 3 жыл бұрын
I found it! Adding options="{'clickable': '1'}" works perfectly!
@OdooMates
@OdooMates 3 жыл бұрын
Cool :)
@webcoder7157
@webcoder7157 4 жыл бұрын
BIG THANKSS MAN. YOU ARE LIFE SAVER
@OdooMates
@OdooMates 4 жыл бұрын
Hope you will refer the channel with odoo friends and keep supporting us. Thank you
@webcoder7157
@webcoder7157 4 жыл бұрын
@@OdooMates Yes.. I am getting issue to calculate discount Please can you help me with example I didn't got any usefull compute funtion
@OdooMates
@OdooMates 4 жыл бұрын
@@webcoder7157 kzbin.info/www/bejne/g5ibYXqup7B3hcU
@webcoder7157
@webcoder7157 4 жыл бұрын
@@OdooMates Thanks. I Have other question how we can update new sale order line behalf of the custom section of the products please
@OdooMates
@OdooMates 4 жыл бұрын
@@webcoder7157 Add necessary fields to order line and bring it in the onchange of the product
@MrArian2
@MrArian2 4 жыл бұрын
Im using odoo 13 and when I click on Confirm button the state is not changed and stays in draft state. any ideas?
@OdooMates
@OdooMates 4 жыл бұрын
Did you add the function in button name to change the state ?
@thisuraweerakkody3841
@thisuraweerakkody3841 4 жыл бұрын
Thank You
@OdooMates
@OdooMates 3 жыл бұрын
You're welcome!
@AdeshPaul
@AdeshPaul 4 жыл бұрын
Thanks.
@OdooMates
@OdooMates 4 жыл бұрын
Happy to hear it :)
@iGuntaram
@iGuntaram 4 жыл бұрын
how to only visible confirm button for document creator?
@OdooMates
@OdooMates 4 жыл бұрын
you can use attributes for this..
@erfanjahanshahloo9170
@erfanjahanshahloo9170 5 жыл бұрын
best best best
@OdooMates
@OdooMates 4 жыл бұрын
thanks :)
@KhalilulrahmanAG
@KhalilulrahmanAG 4 жыл бұрын
how to go cancel state
@OdooMates
@OdooMates 4 жыл бұрын
You can add a button with string cancel and inside the function, write self.state='cancel'
@webcoder7157
@webcoder7157 4 жыл бұрын
@@OdooMates HOW WE CAN SEND BY EMAIL PLEASE HELP IN THIS TOO
@OdooMates
@OdooMates 4 жыл бұрын
@@webcoder7157 Hope you have seen the video already, see: kzbin.info/www/bejne/eYu5g6Cqq5ulm5I
How To Create PDF Report in Odoo
23:35
Odoo Mates
Рет қаралды 93 М.
How To Add Smart Buttons in Odoo12 (type object)
21:42
Odoo Mates
Рет қаралды 20 М.
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 24 МЛН
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 28 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 82 МЛН
World‘s Strongest Man VS Apple
01:00
Browney
Рет қаралды 39 МЛН
Record Rules in Odoo
19:50
Odoo Mates
Рет қаралды 32 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 200 М.
Please, don’t use viewport units for font sizes
9:55
Kevin Powell
Рет қаралды 14 М.
The Problem With Microservices
17:47
Continuous Delivery
Рет қаралды 435 М.
Create a Wizard and Call it in Button Click Odoo
17:51
Odoo Mates
Рет қаралды 34 М.
How to Add New Sequence in odoo12
11:34
Odoo Mates
Рет қаралды 24 М.
Debugging a Complex T-SQL Issue
1:00:54
Brent Ozar Unlimited
Рет қаралды 4,1 М.
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 24 МЛН