Automating Record Creation in Odoo for Beginners: Harnessing the Power of Automated Actions

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ม.ค. 2025

ความคิดเห็น • 38

  • @ricarteb.becera7786
    @ricarteb.becera7786 11 หลายเดือนก่อน +3

    Powerful technique, thank you!

  • @RolandoLopezNieto
    @RolandoLopezNieto 11 หลายเดือนก่อน +1

    Great and powerful info, thanks

  • @hez68
    @hez68 6 วันที่ผ่านมา +1

    Hello, thank you for all your very usefull video, is there any chance I can action_update_prices method on SO each time save the document without having to click on the button by using this kind of action ? I don't how how to call this existing action regards

    • @odoo-it-yourself
      @odoo-it-yourself  5 วันที่ผ่านมา +1

      Glad they've helped! You should be able to do that using the UI change trigger.

  • @nixonquierre1590
    @nixonquierre1590 2 หลายเดือนก่อน +1

    Hi, great stuff.!! I have a question though, how can I create a project using button to execute a server action. The name should be the sales order number

    • @odoo-it-yourself
      @odoo-it-yourself  2 หลายเดือนก่อน

      Not a problem! You could can create a server action to create the project and then add a button using studio. I have a video on adding a button and then you'd want to look at my videos on server actions. Hope that helps!

  • @Tanke1967
    @Tanke1967 2 หลายเดือนก่อน +1

    Hi, very usefull, but if a have a error, where I can check the output message?

    • @odoo-it-yourself
      @odoo-it-yourself  2 หลายเดือนก่อน

      Is it showing you an error or just not working?

  • @dylanwaltzing4612
    @dylanwaltzing4612 11 หลายเดือนก่อน +2

    Super instructive ! I have been reading you on reddit, it's good to see video now. Please continue to share your knowledge :)
    As you add python code on your DB, does that trigger maintenance cost from Odoo on top of your saas subcription ?

    • @odoo-it-yourself
      @odoo-it-yourself  11 หลายเดือนก่อน

      Thanks for the feedback. I really appreciate it! I believe the code cost is unique to ODOO.sh. ODOO.com and self hosted are safe from it.

    • @cparker4486
      @cparker4486 11 หลายเดือนก่อน +1

      My understanding is that work done through Studio is excluded.

  • @Brucom-Ant
    @Brucom-Ant 11 หลายเดือนก่อน +2

    Great video yet again, find myself checking up on your channel almost every day to see new tips and tricks!
    I have two use cases that Python Code could be very helpful for if possible: I want to add a delivery date field on the Sales Order Lines that is then shown on all related MOs (Parent and subsequent children), then any changes on the Sales Order Line updates the MOs
    I also want to be able to create products from the Project app, but I will try the code (with modifications) you've provided for this scenario

    • @odoo-it-yourself
      @odoo-it-yourself  11 หลายเดือนก่อน +1

      Both of these sound quite doable! Please let me know if you get stuck. Are you wanting to create a product based on certain criteria in the project?

  • @joubertmouton9716
    @joubertmouton9716 หลายเดือนก่อน +1

    This might solve the problem of Odoo not creating Journal entries for consumable items in an MO.

    • @odoo-it-yourself
      @odoo-it-yourself  หลายเดือนก่อน

      You could do that, yep!

    • @joubertmouton9716
      @joubertmouton9716 หลายเดือนก่อน

      Update: It worked beter than expected. Surprised no one suggested it before on any of the Forums. Thank you.

  • @Brucom-Ant
    @Brucom-Ant 10 หลายเดือนก่อน +1

    Hi Again,
    Do you happen to know what the code would be for creating a leave allocation (Time Off) when a new employee is added (Employees)?
    I have an automated action in the Time Off app already, that adds an activity to any new allocation, but I'm struggling getting the Employees>Time Off to work

    • @odoo-it-yourself
      @odoo-it-yourself  10 หลายเดือนก่อน

      Are you wanting to use a template or are you wanting to hard code the creation?

    • @Brucom-Ant
      @Brucom-Ant 10 หลายเดือนก่อน

      @@odoo-it-yourself I'm looking to hard code the creation, but if it's easier to create using a template, that would be fine too

  • @eliasfink5227
    @eliasfink5227 10 หลายเดือนก่อน +1

    Great work! Your videos make the implementation of Odoo much easier. I filled the form on your website, to get in touch for specific questions I want you to ask, but I think your website form is broken.
    Got a question appropriate to the video: I tried to set the assignee of a task equal to the sales man in the sales order using python, but its not working, you got any idea, how this python script should look like? Thanks!

    • @odoo-it-yourself
      @odoo-it-yourself  10 หลายเดือนก่อน

      Thank you! I'll have to check on the form. Need to finish off the website properly. So is this a project task or an activity you're wanting to assign and is this based on sales order? If so, you'd want to point to team_id.user_id.id

  • @talalbaitamoni9353
    @talalbaitamoni9353 หลายเดือนก่อน +1

    How about creating records using sale order lines?

    • @odoo-it-yourself
      @odoo-it-yourself  หลายเดือนก่อน

      You could definitely do that, yeah!

  • @cparker4486
    @cparker4486 11 หลายเดือนก่อน +2

    Very cool.

    • @odoo-it-yourself
      @odoo-it-yourself  11 หลายเดือนก่อน

      Thanks! Hopefully helps you out.

  • @jeremyklepper6489
    @jeremyklepper6489 10 หลายเดือนก่อน +1

    Can you do a Python Code that emails certain employee when a Sales Order is confirmed?

    • @odoo-it-yourself
      @odoo-it-yourself  10 หลายเดือนก่อน

      Definitely. That would be a super simple automated action.

  • @timd6324
    @timd6324 11 หลายเดือนก่อน +1

    I know the topic was automation record creation but that was a very helpful python as well!!! As another possible automation. How to insert a note or a message in the chatter of a record.

    • @odoo-it-yourself
      @odoo-it-yourself  10 หลายเดือนก่อน +1

      Definitely could do that! Just showing how to use the create method there, yeah?

    • @timd6324
      @timd6324 10 หลายเดือนก่อน

      @@odoo-it-yourself I suppose it would be a create really but going into a note a message will then contact a follower by their preferred method.

  • @amerjumah619
    @amerjumah619 9 หลายเดือนก่อน +1

    Yes plz create in one2many fields tutorial pleeeeease

    • @odoo-it-yourself
      @odoo-it-yourself  9 หลายเดือนก่อน

      Thanks for responding! Would you have an example you'd like me to run through?

  • @binaykumar7396
    @binaykumar7396 5 หลายเดือนก่อน +1

    Bro please show many to one and one to many and many to many bro..

    • @odoo-it-yourself
      @odoo-it-yourself  5 หลายเดือนก่อน

      How to create records in those related fields?

  • @tawfikragab1054
    @tawfikragab1054 11 หลายเดือนก่อน +2

    Great and powerful info, thanks

    • @odoo-it-yourself
      @odoo-it-yourself  11 หลายเดือนก่อน

      Sure hope it helps! Thank you!