Good stuff in this series. Please keep it up. For reference, if your string is surrounded by single quotes and you want to use a single quote in it, you can just escape it by putting a backslash in front of it. raise UserError('I don\'t like that number') OR surround your string with double quotes raise UserError("I don't like that number").
@@odoo-it-yourself It's one of those things where I don't know what I don't know. Let me throw a specific case out there though. I have a web form that is submitted and creates a lead in crm. It's assigned to a sales team, not a person because people change and I don't want to update the form all the time. Upon lead creation I want Odoo to send an email to all members of the associated sales team.
@@timd6324 So I'd actually create a next activity, because then they can choose whether to have an email or not. I'd set up an automated action that uses python to loop through the users in the team and adds a next activity for each of them. I could see that being super useful. Nice work!
Good stuff in this series. Please keep it up.
For reference, if your string is surrounded by single quotes and you want to use a single quote in it, you can just escape it by putting a backslash in front of it. raise UserError('I don\'t like that number') OR surround your string with double quotes raise UserError("I don't like that number").
Thanks! I'm always looking for tips!
That was a great easy to digest intro. Looking forward to more!
Thank you! Anything you'd like for the next one?
@@odoo-it-yourself It's one of those things where I don't know what I don't know. Let me throw a specific case out there though. I have a web form that is submitted and creates a lead in crm. It's assigned to a sales team, not a person because people change and I don't want to update the form all the time. Upon lead creation I want Odoo to send an email to all members of the associated sales team.
@@timd6324 So I'd actually create a next activity, because then they can choose whether to have an email or not. I'd set up an automated action that uses python to loop through the users in the team and adds a next activity for each of them. I could see that being super useful. Nice work!
you have a fitting voice for tutorials :) great work
Thanks so much!
Great video! It was a nice refresher on basic Python topics, and to also see basic python implemented in an application use.
Thank you! I appreciate the positive feedback. I take it you're a developer. Anything you would add?
thanks for the video very didactic
Thank you!
How do I hire you? You don't seem to have a website and I don't use LinkedIn.
Happy to talk to you. Please hit me up at aelaw326@gmail.com.
Thanks! Very helpful!
Thank you very much!
awesome!!!
Thanks!!