How To Create Scheduled Actions in Odoo

Поделиться
HTML-код
  • Опубликовано: 6 янв 2025

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

  • @Jose-tw9bl
    @Jose-tw9bl 4 года назад +3

    I've been stuck for nearly the hole day to find out how to do this, until i found this. Solved in less than 20min, super thumbs up!! Thank you very much!

  • @sasinduprasad7510
    @sasinduprasad7510 4 года назад +2

    Thank You so much Odoo Mates. Great explain, finally I got your solution.

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

      Happy to hear it :)

  • @futhedude4848
    @futhedude4848 2 года назад +6

    If your schedule didn't run automatically, you should set noupdate="0" instead of noupdate="1", because noupdate="1" is for cron run only once.

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

    Hi, Can you help me? How can add the next day with 07:59:59. I can't do it. Tks so much

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

      Set interval as day and modify the time from the ui

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

    Nice Explaination. Good Job !

  • @ibrahimhalouane8130
    @ibrahimhalouane8130 4 года назад +1

    Does the cron job function supposed to return a boolean? I found "return True" in the odoo's source.

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

      Not mandatory always

    • @ibrahimhalouane8130
      @ibrahimhalouane8130 4 года назад

      @@OdooMates What if we "return False", does it means the job has not been executed correctly? will this be recored somewhere ?

  • @miguela.cuevas6629
    @miguela.cuevas6629 3 года назад +1

    Good job I really like it.
    If I hadn't written print ("Abcd", rec).
    What would you have written instead?

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

      instead of printing abcd, we can perform some operations as per the need

  • @deepakharish270
    @deepakharish270 5 лет назад +2

    I runs automatically according to the Odoo Time which can be found in the logs, not according to your pc time.

    • @OdooMates
      @OdooMates  5 лет назад

      Server time/browser time

  • @bobywyjaya3726
    @bobywyjaya3726 4 года назад +1

    Thank you, this video help me so much

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

    ValueError: : "'school.student' object has no attribute 'test_cron_job'" while evaluating
    'model.test_cron_job()'
    fix please?

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

      ruclips.net/video/AHxIutNAda0/видео.html

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

    Hi, This video is very helpful for me but Why For loop in function not executed on scheduled action triggered?

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

      Glad it helped

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

      ruclips.net/video/Rv44nFVn_5U/видео.html

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

      @@OdooMates Thank you for you're reply but this is not am actually mean it .here is the python code executed on scheduled action,
      @api.model
      def _get_open_qty(self):
      for rec in self:
      rec.open_qty = rec.qty_available
      print("hi")
      the print statement is executed but the for loop is not worked. Hope you help me

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

      @@anuvarghese3672 in your case you can remove the for loop and add your logic

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

      @@OdooMates Thank You so much Odoo Mates.

  • @enricostano5648
    @enricostano5648 5 лет назад

    Hi, thanks for your time! Nice video. Would be nice to also understand how to create scheduled action to create a new record, state "object_create" instead of "code". Thanks!

  • @sarathisarathi318
    @sarathisarathi318 4 года назад +2

    it shows error 'External ID not found in the system: %s' % xmlid)

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

      Can I see your code

    • @sarathisarathi318
      @sarathisarathi318 4 года назад

      last_week_visit_date

      code
      model.send_followup_mail()

      1
      minutes
      -1

    • @sarathisarathi318
      @sarathisarathi318 4 года назад

      "External ID not found in the system: ir.actions.server"

    • @sarathisarathi318
      @sarathisarathi318 4 года назад

      bug in my side ,its working now ,i removed the ref

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

    What is the mean of "-1" in numbercall?
    why is that "-1" / (minus one)..?
    did am I missing something about that in this video?

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

      to set the limit of number of executions, if you set a number it will execute only that much times, -1 will represent no limit

  • @raafatalnakar
    @raafatalnakar 4 года назад +1

    Can we get the module that you explained on(hospital module )?

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

      Yes, search Odoo development tutorial or om_hospital in Odoo apps you can download it for free

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

      apps.odoo.com/apps/modules/12.0/om_hospital/

    • @raafatalnakar
      @raafatalnakar 4 года назад +1

      Thank you

  • @kopheep9720
    @kopheep9720 4 года назад

    Hi odoo mate, I’m currently trying to put acitivity_ids field in a custom Kanban view.
    I follow the way that CRM does, like:
    But when the activity overdue, the clock icon doesn’t turn red like the Kanban view in CRM or project module does. Do you know how to do that?

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

    Thanks it's an interesting video

  • @omarahmed299
    @omarahmed299 4 года назад +1

    good tutorial as expected ..
    i have 2 issues :
    i changed time to run after 2 minutes but method didn't called ..
    second : i want to make my cron method run for model level to check specific field .. how can i do this ?
    can i create email from cron python method based on condition ?
    thanks

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

      For this better than scheduled action.. You can go with automated action

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

      Regarding the function not getting executed... Just make sure whether it is or not... Because it has to work... Just add a print statement in the log and see... Whether it get printed or not

    • @omarahmed299
      @omarahmed299 4 года назад

      @@OdooMates my case : i want to check 'visa expire' field for all employees and if (Today date - Visa Expire

    • @adityaramkumar8509
      @adityaramkumar8509 4 года назад

      @@omarahmed299 where you able to do that? I am also confused ?

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

    How to send scheduled mails to a specific users in a group

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

      To get the users of user group, you can check like this from the python.
      suppose group id is 10, then browse the record, then by calling .users will return the users in the list.

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

    Hi, nice video, could you attatch git repo for us please?

    • @OdooMates
      @OdooMates  Год назад

      github.com/odoomates/odooapps/tree/16.0/om_hospital

  • @AdeshPaul
    @AdeshPaul 4 года назад +1

    thank you sir.

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

    thinks Mates