odoo-addon-automation-oca 16.0.1.2.0.2__py3-none-any.whl → 16.0.1.3.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ Automation Oca
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:dd397d9fb907b934f5a679fcebb66f13e6eb548ceb0c7b21c5d81a0596d600c2
10
+ !! source digest: sha256:7590da06e1c26c7c195b09fd60c5cfdbc01f941e5b611fc3c9cd7b3e0526374d
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -130,6 +130,10 @@ Step execution
130
130
  Steps are executed using a cron action. This action is executed every
131
131
  hour by default. On the record view, you can execute manually an action.
132
132
 
133
+ There is a way to enforce step execution when finalize the previous one.
134
+ If we set a negative value on the period, the execution will be
135
+ immediate without a cron.
136
+
133
137
  .. |Configuration Screenshot| image:: https://raw.githubusercontent.com/OCA/automation/16.0/automation_oca/static/description/configuration.png
134
138
 
135
139
  Bug Tracker
@@ -5,7 +5,7 @@
5
5
  "name": "Automation Oca",
6
6
  "summary": """
7
7
  Automate actions in threaded models""",
8
- "version": "16.0.1.2.0",
8
+ "version": "16.0.1.3.0",
9
9
  "license": "AGPL-3",
10
10
  "category": "Automation",
11
11
  "author": "Dixmit,Odoo Community Association (OCA)",
@@ -87,6 +87,11 @@ msgstr ""
87
87
  msgid "<span class=\"col-2\">of</span>"
88
88
  msgstr ""
89
89
 
90
+ #. module: automation_oca
91
+ #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_form_view
92
+ msgid "<span class=\"pe-1\">Immediatly</span>"
93
+ msgstr ""
94
+
90
95
  #. module: automation_oca
91
96
  #: model_terms:ir.ui.view,arch_db:automation_oca.automation_record_form_view
92
97
  msgid "<span>This record is an orphan record</span>"
@@ -422,6 +427,11 @@ msgstr ""
422
427
  msgid "Display Name"
423
428
  msgstr ""
424
429
 
430
+ #. module: automation_oca
431
+ #: model:ir.model.fields,field_description:automation_oca.field_automation_record_step__do_not_wait
432
+ msgid "Do Not Wait"
433
+ msgstr ""
434
+
425
435
  #. module: automation_oca
426
436
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration__domain
427
437
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration_step__domain
@@ -648,6 +658,13 @@ msgstr ""
648
658
  msgid "If checked, some messages have a delivery error."
649
659
  msgstr ""
650
660
 
661
+ #. module: automation_oca
662
+ #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_step_form_view
663
+ msgid ""
664
+ "In this case, the task will be executed automatically when we create it in "
665
+ "the same process."
666
+ msgstr ""
667
+
651
668
  #. module: automation_oca
652
669
  #: model:ir.model.fields,help:automation_oca.field_automation_record__is_orphan_record
653
670
  msgid "Indicates if this record is a placeholder for a missing resource."
@@ -1160,6 +1177,14 @@ msgstr ""
1160
1177
  msgid "Server Action"
1161
1178
  msgstr ""
1162
1179
 
1180
+ #. module: automation_oca
1181
+ #: model:ir.model.fields,help:automation_oca.field_automation_configuration_step__trigger_interval
1182
+ msgid ""
1183
+ "Set a negative time trigger if you want the step to be executed\n"
1184
+ " immediately, in parallel with the previous step, without waiting for it to\n"
1185
+ " finish."
1186
+ msgstr ""
1187
+
1163
1188
  #. module: automation_oca
1164
1189
  #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_step_form_view
1165
1190
  msgid "Specific Domain"
@@ -6,15 +6,15 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: Odoo Server 16.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
- "PO-Revision-Date: 2024-06-20 19:34+0000\n"
10
- "Last-Translator: Abraham Anes <abraham@studio73.es>\n"
9
+ "PO-Revision-Date: 2025-04-08 07:24+0000\n"
10
+ "Last-Translator: Enric Tobella <etobella@creublanca.es>\n"
11
11
  "Language-Team: none\n"
12
12
  "Language: es\n"
13
13
  "MIME-Version: 1.0\n"
14
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
15
  "Content-Transfer-Encoding: \n"
16
16
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
17
- "X-Generator: Weblate 4.17\n"
17
+ "X-Generator: Weblate 5.10.4\n"
18
18
 
19
19
  #. module: automation_oca
20
20
  #: model:ir.model.fields,help:automation_oca.field_automation_configuration__domain
@@ -28,6 +28,14 @@ msgid ""
28
28
  " * user\n"
29
29
  " * ref "
30
30
  msgstr ""
31
+ "\n"
32
+ " Filtros a aplicar\n"
33
+ " Las siguientes variables pueden ser usadas en el filtro :\n"
34
+ " * datetime\n"
35
+ " * dateutil\n"
36
+ " * time\n"
37
+ " * user\n"
38
+ " * ref "
31
39
 
32
40
  #. module: automation_oca
33
41
  #. odoo-python
@@ -58,7 +66,7 @@ msgstr "<i class=\"fa fa-envelope\" title=\"Correos\"/>"
58
66
  #. module: automation_oca
59
67
  #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_kanban_view
60
68
  msgid "<i class=\"fa fa-hand-pointer-o\" title=\"Clicks\"/>"
61
- msgstr ""
69
+ msgstr "<i class=\"fa fa-hand-pointer-o\" title=\"Clicks\"/>"
62
70
 
63
71
  #. module: automation_oca
64
72
  #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_form_view
@@ -100,10 +108,15 @@ msgstr "<span class=\"col-2\">después</span>"
100
108
  msgid "<span class=\"col-2\">of</span>"
101
109
  msgstr "<span class=\"col-2\">de</span>"
102
110
 
111
+ #. module: automation_oca
112
+ #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_form_view
113
+ msgid "<span class=\"pe-1\">Immediatly</span>"
114
+ msgstr "<span class=\"pe-1\">Immediatamente</span>"
115
+
103
116
  #. module: automation_oca
104
117
  #: model_terms:ir.ui.view,arch_db:automation_oca.automation_record_form_view
105
118
  msgid "<span>This record is an orphan record</span>"
106
- msgstr ""
119
+ msgstr "<span>Este registro es huérfano</span>"
107
120
 
108
121
  #. module: automation_oca
109
122
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration__message_needaction
@@ -203,7 +216,7 @@ msgstr "Dominio aplicado"
203
216
  #. module: automation_oca
204
217
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration_step__apply_parent_domain
205
218
  msgid "Apply Parent Domain"
206
- msgstr ""
219
+ msgstr "Aplicar el dominio anterior"
207
220
 
208
221
  #. module: automation_oca
209
222
  #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_form_view
@@ -361,7 +374,7 @@ msgstr "Clics"
361
374
  #. module: automation_oca
362
375
  #: model:ir.model.fields,field_description:automation_oca.field_automation_tag__color
363
376
  msgid "Color"
364
- msgstr ""
377
+ msgstr "Color"
365
378
 
366
379
  #. module: automation_oca
367
380
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration__company_id
@@ -412,7 +425,7 @@ msgstr "Creado en"
412
425
  #: model:ir.model.fields.selection,name:automation_oca.selection__automation_configuration_step__expiry_interval_type__days
413
426
  #: model:ir.model.fields.selection,name:automation_oca.selection__automation_configuration_step__trigger_interval_type__days
414
427
  msgid "Day(s)"
415
- msgstr ""
428
+ msgstr "Día(s)"
416
429
 
417
430
  #. module: automation_oca
418
431
  #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_step_form_view
@@ -435,6 +448,11 @@ msgstr "Borrar"
435
448
  msgid "Display Name"
436
449
  msgstr "Nombre mostrado"
437
450
 
451
+ #. module: automation_oca
452
+ #: model:ir.model.fields,field_description:automation_oca.field_automation_record_step__do_not_wait
453
+ msgid "Do Not Wait"
454
+ msgstr "No esperar"
455
+
438
456
  #. module: automation_oca
439
457
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration__domain
440
458
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration_step__domain
@@ -506,7 +524,7 @@ msgstr "Forzar generación"
506
524
  #: model_terms:ir.ui.view,arch_db:automation_oca.automation_record_step_search_view
507
525
  #, python-format
508
526
  msgid "Error"
509
- msgstr ""
527
+ msgstr "Error"
510
528
 
511
529
  #. module: automation_oca
512
530
  #: model:ir.model.fields,field_description:automation_oca.field_automation_record_step__error_trace
@@ -577,6 +595,13 @@ msgid ""
577
595
  " * user\n"
578
596
  " * ref "
579
597
  msgstr ""
598
+ "Filtros a aplicar\n"
599
+ " Las siguientes variables puede ser usadas en el filtro :\n"
600
+ " * datetime\n"
601
+ " * dateutil\n"
602
+ " * time\n"
603
+ " * user\n"
604
+ " * ref "
580
605
 
581
606
  #. module: automation_oca
582
607
  #: model:ir.model.fields,help:automation_oca.field_automation_configuration_step__domain
@@ -617,17 +642,17 @@ msgstr "Usuario genérico del registro"
617
642
  #. module: automation_oca
618
643
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration_step__graph_data
619
644
  msgid "Graph Data"
620
- msgstr ""
645
+ msgstr "Datos del Gráfico"
621
646
 
622
647
  #. module: automation_oca
623
648
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration_step__graph_done
624
649
  msgid "Graph Done"
625
- msgstr ""
650
+ msgstr "Gráfico de Realización"
626
651
 
627
652
  #. module: automation_oca
628
653
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration_step__graph_error
629
654
  msgid "Graph Error"
630
- msgstr ""
655
+ msgstr "Gráfico de Error"
631
656
 
632
657
  #. module: automation_oca
633
658
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration__has_message
@@ -638,7 +663,7 @@ msgstr "Tiene mensaje"
638
663
  #: model:ir.model.fields.selection,name:automation_oca.selection__automation_configuration_step__expiry_interval_type__hours
639
664
  #: model:ir.model.fields.selection,name:automation_oca.selection__automation_configuration_step__trigger_interval_type__hours
640
665
  msgid "Hour(s)"
641
- msgstr ""
666
+ msgstr "Hora(s)"
642
667
 
643
668
  #. module: automation_oca
644
669
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration__id
@@ -649,7 +674,7 @@ msgstr ""
649
674
  #: model:ir.model.fields,field_description:automation_oca.field_automation_record_step__id
650
675
  #: model:ir.model.fields,field_description:automation_oca.field_automation_tag__id
651
676
  msgid "ID"
652
- msgstr ""
677
+ msgstr "ID"
653
678
 
654
679
  #. module: automation_oca
655
680
  #: model:ir.model.fields,help:automation_oca.field_automation_configuration__message_needaction
@@ -661,10 +686,18 @@ msgstr "Si está marcado, los nuevos mensajes requieren su atención."
661
686
  msgid "If checked, some messages have a delivery error."
662
687
  msgstr "Si está marcado, algunos mensajes tienen un error de entrega."
663
688
 
689
+ #. module: automation_oca
690
+ #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_step_form_view
691
+ msgid ""
692
+ "In this case, the task will be executed automatically when we create it in "
693
+ "the same process."
694
+ msgstr ""
695
+ "En este caso, la tarea se ejecutará inmediatamente cuando se cree la acción."
696
+
664
697
  #. module: automation_oca
665
698
  #: model:ir.model.fields,help:automation_oca.field_automation_record__is_orphan_record
666
699
  msgid "Indicates if this record is a placeholder for a missing resource."
667
- msgstr ""
700
+ msgstr "Indica si este registro está relacionada con un registro desaparecido."
668
701
 
669
702
  #. module: automation_oca
670
703
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration__message_is_follower
@@ -674,7 +707,7 @@ msgstr "Es seguidor"
674
707
  #. module: automation_oca
675
708
  #: model:ir.model.fields,field_description:automation_oca.field_automation_record__is_orphan_record
676
709
  msgid "Is Orphan Record"
677
- msgstr ""
710
+ msgstr "Es un Registro Huérfano"
678
711
 
679
712
  #. module: automation_oca
680
713
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration__is_periodic
@@ -866,7 +899,7 @@ msgstr "Modelo donde se aplica la configuración"
866
899
  #. module: automation_oca
867
900
  #: model:ir.model.fields.selection,name:automation_oca.selection__automation_configuration_step__activity_date_deadline_range_type__months
868
901
  msgid "Month(s)"
869
- msgstr ""
902
+ msgstr "Mes(es)"
870
903
 
871
904
  #. module: automation_oca
872
905
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration__name
@@ -1024,7 +1057,7 @@ msgstr "Abierto después"
1024
1057
  #: code:addons/automation_oca/models/automation_record.py:0
1025
1058
  #, python-format
1026
1059
  msgid "Orphan Record"
1027
- msgstr ""
1060
+ msgstr "Registro Huérfano"
1028
1061
 
1029
1062
  #. module: automation_oca
1030
1063
  #: model:ir.model,name:automation_oca.model_mail_mail
@@ -1187,6 +1220,18 @@ msgstr "Enviado"
1187
1220
  msgid "Server Action"
1188
1221
  msgstr "Acción de servidor"
1189
1222
 
1223
+ #. module: automation_oca
1224
+ #: model:ir.model.fields,help:automation_oca.field_automation_configuration_step__trigger_interval
1225
+ msgid ""
1226
+ "Set a negative time trigger if you want the step to be executed\n"
1227
+ " immediately, in parallel with the previous step, without waiting for "
1228
+ "it to\n"
1229
+ " finish."
1230
+ msgstr ""
1231
+ "Define un un tiempo negativo si quieres que el registro se ejecute\n"
1232
+ " inmediatamente, en paralelo, sin esperar que acabe el \n"
1233
+ " anterior."
1234
+
1190
1235
  #. module: automation_oca
1191
1236
  #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_step_form_view
1192
1237
  msgid "Specific Domain"
@@ -1400,7 +1445,7 @@ msgstr "Nombre del campo de usuario"
1400
1445
  #. module: automation_oca
1401
1446
  #: model:ir.model.fields.selection,name:automation_oca.selection__automation_configuration_step__activity_date_deadline_range_type__weeks
1402
1447
  msgid "Week(s)"
1403
- msgstr ""
1448
+ msgstr "Semana(s)"
1404
1449
 
1405
1450
  #. module: automation_oca
1406
1451
  #: model:mail.template,name:automation_oca.demo_welcome_template
@@ -96,6 +96,11 @@ msgstr "<span class=\"col-2\">après</span>"
96
96
  msgid "<span class=\"col-2\">of</span>"
97
97
  msgstr "<span class=\"col-2\">de</span>"
98
98
 
99
+ #. module: automation_oca
100
+ #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_form_view
101
+ msgid "<span class=\"pe-1\">Immediatly</span>"
102
+ msgstr ""
103
+
99
104
  #. module: automation_oca
100
105
  #: model_terms:ir.ui.view,arch_db:automation_oca.automation_record_form_view
101
106
  msgid "<span>This record is an orphan record</span>"
@@ -431,6 +436,11 @@ msgstr "Supprimer"
431
436
  msgid "Display Name"
432
437
  msgstr "Nom"
433
438
 
439
+ #. module: automation_oca
440
+ #: model:ir.model.fields,field_description:automation_oca.field_automation_record_step__do_not_wait
441
+ msgid "Do Not Wait"
442
+ msgstr ""
443
+
434
444
  #. module: automation_oca
435
445
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration__domain
436
446
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration_step__domain
@@ -657,6 +667,13 @@ msgstr "Si coché, des nouveaux messages requièrent votre attention."
657
667
  msgid "If checked, some messages have a delivery error."
658
668
  msgstr "Si coché, des messages ont des erreurs de délivrabilité."
659
669
 
670
+ #. module: automation_oca
671
+ #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_step_form_view
672
+ msgid ""
673
+ "In this case, the task will be executed automatically when we create it in "
674
+ "the same process."
675
+ msgstr ""
676
+
660
677
  #. module: automation_oca
661
678
  #: model:ir.model.fields,help:automation_oca.field_automation_record__is_orphan_record
662
679
  msgid "Indicates if this record is a placeholder for a missing resource."
@@ -1183,6 +1200,15 @@ msgstr "Envoyé"
1183
1200
  msgid "Server Action"
1184
1201
  msgstr "Action serveur"
1185
1202
 
1203
+ #. module: automation_oca
1204
+ #: model:ir.model.fields,help:automation_oca.field_automation_configuration_step__trigger_interval
1205
+ msgid ""
1206
+ "Set a negative time trigger if you want the step to be executed\n"
1207
+ " immediately, in parallel with the previous step, without waiting for "
1208
+ "it to\n"
1209
+ " finish."
1210
+ msgstr ""
1211
+
1186
1212
  #. module: automation_oca
1187
1213
  #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_step_form_view
1188
1214
  msgid "Specific Domain"
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: Odoo Server 16.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
- "PO-Revision-Date: 2025-03-27 15:06+0000\n"
9
+ "PO-Revision-Date: 2025-04-08 10:24+0000\n"
10
10
  "Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
11
11
  "Language-Team: none\n"
12
12
  "Language: it\n"
@@ -14,7 +14,7 @@ msgstr ""
14
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
15
  "Content-Transfer-Encoding: \n"
16
16
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
17
- "X-Generator: Weblate 5.10.2\n"
17
+ "X-Generator: Weblate 5.10.4\n"
18
18
 
19
19
  #. module: automation_oca
20
20
  #: model:ir.model.fields,help:automation_oca.field_automation_configuration__domain
@@ -109,6 +109,11 @@ msgstr "<span class=\"col-2\">dopo</span>"
109
109
  msgid "<span class=\"col-2\">of</span>"
110
110
  msgstr "<span class=\"col-2\">di</span>"
111
111
 
112
+ #. module: automation_oca
113
+ #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_form_view
114
+ msgid "<span class=\"pe-1\">Immediatly</span>"
115
+ msgstr "<span class=\"pe-1\">Immediatamente</span>"
116
+
112
117
  #. module: automation_oca
113
118
  #: model_terms:ir.ui.view,arch_db:automation_oca.automation_record_form_view
114
119
  msgid "<span>This record is an orphan record</span>"
@@ -444,6 +449,11 @@ msgstr "Cancella"
444
449
  msgid "Display Name"
445
450
  msgstr "Nome visualizzato"
446
451
 
452
+ #. module: automation_oca
453
+ #: model:ir.model.fields,field_description:automation_oca.field_automation_record_step__do_not_wait
454
+ msgid "Do Not Wait"
455
+ msgstr "Non aspettare"
456
+
447
457
  #. module: automation_oca
448
458
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration__domain
449
459
  #: model:ir.model.fields,field_description:automation_oca.field_automation_configuration_step__domain
@@ -678,6 +688,15 @@ msgstr "Se selezionata, nuovi messaggi richiedono attenzione."
678
688
  msgid "If checked, some messages have a delivery error."
679
689
  msgstr "Se selezionata, alcuni messaggi hanno un errore di consegna."
680
690
 
691
+ #. module: automation_oca
692
+ #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_step_form_view
693
+ msgid ""
694
+ "In this case, the task will be executed automatically when we create it in "
695
+ "the same process."
696
+ msgstr ""
697
+ "In questo caso, il lavoro verrà eseguito automaticamente alla creazione "
698
+ "nello stesso processo."
699
+
681
700
  #. module: automation_oca
682
701
  #: model:ir.model.fields,help:automation_oca.field_automation_record__is_orphan_record
683
702
  msgid "Indicates if this record is a placeholder for a missing resource."
@@ -1204,6 +1223,19 @@ msgstr "Inviata"
1204
1223
  msgid "Server Action"
1205
1224
  msgstr "Azione server"
1206
1225
 
1226
+ #. module: automation_oca
1227
+ #: model:ir.model.fields,help:automation_oca.field_automation_configuration_step__trigger_interval
1228
+ msgid ""
1229
+ "Set a negative time trigger if you want the step to be executed\n"
1230
+ " immediately, in parallel with the previous step, without waiting for "
1231
+ "it to\n"
1232
+ " finish."
1233
+ msgstr ""
1234
+ "Impostare un trigger temporale negativo se si vuole che il passaggio \n"
1235
+ " venga eseguito immediatamente, parallelamente al passaggio "
1236
+ "precedente,\n"
1237
+ " senza attendere che termini."
1238
+
1207
1239
  #. module: automation_oca
1208
1240
  #: model_terms:ir.ui.view,arch_db:automation_oca.automation_configuration_step_form_view
1209
1241
  msgid "Specific Domain"
@@ -47,7 +47,11 @@ class AutomationConfigurationStep(models.Model):
47
47
  trigger_interval_hours = fields.Integer(
48
48
  compute="_compute_trigger_interval_hours", store=True
49
49
  )
50
- trigger_interval = fields.Integer()
50
+ trigger_interval = fields.Integer(
51
+ help="""Set a negative time trigger if you want the step to be executed
52
+ immediately, in parallel with the previous step, without waiting for it to
53
+ finish."""
54
+ )
51
55
  trigger_interval_type = fields.Selection(
52
56
  [("hours", "Hour(s)"), ("days", "Day(s)")], required=True, default="hours"
53
57
  )
@@ -510,9 +514,12 @@ class AutomationConfigurationStep(models.Model):
510
514
  )
511
515
 
512
516
  def _create_record_activity_vals(self, record, **kwargs):
517
+ scheduled_date = self._get_record_activity_scheduled_date()
518
+ do_not_wait = scheduled_date and scheduled_date < fields.Datetime.now()
513
519
  return {
514
520
  "configuration_step_id": self.id,
521
+ "do_not_wait": do_not_wait,
515
522
  "expiry_date": self._get_expiry_date(),
516
- "scheduled_date": self._get_record_activity_scheduled_date(),
523
+ "scheduled_date": scheduled_date,
517
524
  **kwargs,
518
525
  }
@@ -27,6 +27,7 @@ class AutomationRecordStep(models.Model):
27
27
  )
28
28
  step_type = fields.Selection(related="configuration_step_id.step_type", store=True)
29
29
  scheduled_date = fields.Datetime(readonly=True)
30
+ do_not_wait = fields.Boolean()
30
31
  expiry_date = fields.Datetime(readonly=True)
31
32
  processed_on = fields.Datetime(readonly=True)
32
33
  parent_id = fields.Many2one("automation.record.step", readonly=True)
@@ -267,7 +268,11 @@ class AutomationRecordStep(models.Model):
267
268
  # Creates a cron trigger.
268
269
  # On glue modules we could use queue job for a more discrete example
269
270
  # But cron trigger fulfills the job in some way
270
- for date in set(self.mapped("scheduled_date")):
271
+ for activity in self.filtered(lambda r: r.do_not_wait):
272
+ activity.run()
273
+ for date in set(
274
+ self.filtered(lambda r: not r.do_not_wait).mapped("scheduled_date")
275
+ ):
271
276
  if date:
272
277
  self.env["ir.cron.trigger"].create(
273
278
  {
@@ -54,3 +54,6 @@ Step execution
54
54
 
55
55
  Steps are executed using a cron action. This action is executed every hour by default.
56
56
  On the record view, you can execute manually an action.
57
+
58
+ There is a way to enforce step execution when finalize the previous one.
59
+ If we set a negative value on the period, the execution will be immediate without a cron.
@@ -367,7 +367,7 @@ ul.auto-toc {
367
367
  !! This file is generated by oca-gen-addon-readme !!
368
368
  !! changes will be overwritten. !!
369
369
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:dd397d9fb907b934f5a679fcebb66f13e6eb548ceb0c7b21c5d81a0596d600c2
370
+ !! source digest: sha256:7590da06e1c26c7c195b09fd60c5cfdbc01f941e5b611fc3c9cd7b3e0526374d
371
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
372
  <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/automation/tree/16.0/automation_oca"><img alt="OCA/automation" src="https://img.shields.io/badge/github-OCA%2Fautomation-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/automation-16-0/automation-16-0-automation_oca"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/automation&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373
373
  <p>This module allows to automate several process according to some rules.</p>
@@ -481,6 +481,9 @@ hours by default.</p>
481
481
  <h2><a class="toc-backref" href="#toc-entry-5">Step execution</a></h2>
482
482
  <p>Steps are executed using a cron action. This action is executed every
483
483
  hour by default. On the record view, you can execute manually an action.</p>
484
+ <p>There is a way to enforce step execution when finalize the previous one.
485
+ If we set a negative value on the period, the execution will be
486
+ immediate without a cron.</p>
484
487
  </div>
485
488
  </div>
486
489
  <div class="section" id="bug-tracker">
@@ -5,6 +5,22 @@ from .common import AutomationTestCase
5
5
 
6
6
 
7
7
  class TestAutomationAction(AutomationTestCase):
8
+ def test_activity_immediate_execution(self):
9
+ """
10
+ We will check the execution of the tasks and that we cannot execute them again
11
+ """
12
+ activity = self.create_server_action(trigger_interval=-1)
13
+ self.configuration.editable_domain = "[('id', '=', %s)]" % self.partner_01.id
14
+ self.configuration.start_automation()
15
+ self.env["automation.configuration"].cron_automation()
16
+ self.assertFalse(self.partner_01.comment)
17
+ self.assertTrue(self.partner_02.comment)
18
+ record_activity = self.env["automation.record.step"].search(
19
+ [("configuration_step_id", "=", activity.id)]
20
+ )
21
+ self.assertEqual(1, len(record_activity))
22
+ self.assertEqual("done", record_activity.state)
23
+
8
24
  def test_activity_execution(self):
9
25
  """
10
26
  We will check the execution of the tasks and that we cannot execute them again
@@ -252,10 +252,19 @@
252
252
  aria-label="Select time"
253
253
  title="Select time"
254
254
  />
255
- <span class="pe-1"><field
256
- name="trigger_interval"
257
- /></span>
258
- <field name="trigger_interval_type" />
255
+ <t
256
+ t-if="record.trigger_interval.raw_value >= 0"
257
+ >
258
+ <span class="pe-1"><field
259
+ name="trigger_interval"
260
+ /></span>
261
+ <field
262
+ name="trigger_interval_type"
263
+ />
264
+ </t>
265
+ <t t-else="">
266
+ <span class="pe-1">Immediatly</span>
267
+ </t>
259
268
  </strong>
260
269
  </div>
261
270
  </div>
@@ -15,6 +15,13 @@
15
15
  placeholder="e.g. Remember unpaid invoices"
16
16
  /></h1>
17
17
  </div>
18
+ <div
19
+ class="alert alert-warning"
20
+ role="alert"
21
+ attrs="{'invisible': [('trigger_interval', '>=', 0)]}"
22
+ >
23
+ In this case, the task will be executed automatically when we create it in the same process.
24
+ </div>
18
25
  <group>
19
26
  <group>
20
27
  <field name="step_type" />
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-automation_oca
3
- Version: 16.0.1.2.0.2
3
+ Version: 16.0.1.3.0.3
4
4
  Summary: Automate actions in threaded models
5
5
  Home-page: https://github.com/OCA/automation
6
6
  Author: Dixmit,Odoo Community Association (OCA)
@@ -22,7 +22,7 @@ Automation Oca
22
22
  !! This file is generated by oca-gen-addon-readme !!
23
23
  !! changes will be overwritten. !!
24
24
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
25
- !! source digest: sha256:dd397d9fb907b934f5a679fcebb66f13e6eb548ceb0c7b21c5d81a0596d600c2
25
+ !! source digest: sha256:7590da06e1c26c7c195b09fd60c5cfdbc01f941e5b611fc3c9cd7b3e0526374d
26
26
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
27
 
28
28
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -145,6 +145,10 @@ Step execution
145
145
  Steps are executed using a cron action. This action is executed every
146
146
  hour by default. On the record view, you can execute manually an action.
147
147
 
148
+ There is a way to enforce step execution when finalize the previous one.
149
+ If we set a negative value on the period, the execution will be
150
+ immediate without a cron.
151
+
148
152
  .. |Configuration Screenshot| image:: https://raw.githubusercontent.com/OCA/automation/16.0/automation_oca/static/description/configuration.png
149
153
 
150
154
  Bug Tracker
@@ -1,20 +1,20 @@
1
- odoo/addons/automation_oca/README.rst,sha256=NYgWSKNqAFgZUgfVbzWTaJGG65OWaWay6eQ4UJiDBwI,6798
1
+ odoo/addons/automation_oca/README.rst,sha256=3BeUQ9xh-1Hyy9owzpuYk-WKdcbG232k3mKv8l7N1CE,6962
2
2
  odoo/addons/automation_oca/__init__.py,sha256=dnUeA_K1torbiMNF3tt2dtECdk-FkWm01DByr9MBMIA,69
3
- odoo/addons/automation_oca/__manifest__.py,sha256=7RfifhM21bOvpwKwe-GtzTb6RcsSSPhYdmE_1cjEFi8,1181
3
+ odoo/addons/automation_oca/__manifest__.py,sha256=PvQWKc3S0lh7yte3hsjJRoCH-1hHNngiiFc1MhrGJxU,1181
4
4
  odoo/addons/automation_oca/controllers/__init__.py,sha256=4KFqEP2QHFbPN66eQJMdGsmNz2v7ywWv_FR1pW_kkLk,19
5
5
  odoo/addons/automation_oca/controllers/main.py,sha256=DRL6AJKy18ekRPaKtmRoEh5i6fNQDWpoq2GTHztKOKI,2355
6
6
  odoo/addons/automation_oca/data/cron.xml,sha256=viAGNb5X619yXQyfpO_HcJOAiQGzEE-m6Sp4y6F4gDs,1297
7
7
  odoo/addons/automation_oca/demo/demo.xml,sha256=beyrfyRzVTDZ1Mm2sL5Y57W4GDsUvj9gOMUlrEMM1M8,2838
8
- odoo/addons/automation_oca/i18n/automation_oca.pot,sha256=qJoNSkCh2nDKd4s5NE8XKKNj5WokZtPwL5LzBLhX9xI,50650
9
- odoo/addons/automation_oca/i18n/es.po,sha256=2muwuW9g_Kd9scH1FHZXyez5eaidTu9CxIqL3ZuTtnM,56471
10
- odoo/addons/automation_oca/i18n/fr.po,sha256=aSOY-jAHTLrT2l7TWyW0YY9qTzv25ZLjZkAO9j1ZbdQ,54292
11
- odoo/addons/automation_oca/i18n/it.po,sha256=-Dpb86X-rYojjhKZftgaP7IaemYKuGeKdrhSTL67siw,56804
8
+ odoo/addons/automation_oca/i18n/automation_oca.pot,sha256=tx_0kaITykM6HZKKivdyQtFwlAVMIqKQmiquxNafHxg,51526
9
+ odoo/addons/automation_oca/i18n/es.po,sha256=2E6JAiyRH6RAkCD-uwdlc5W_ldwCmncA3jIe29ctC84,58387
10
+ odoo/addons/automation_oca/i18n/fr.po,sha256=V4wJhweHc_goZHW7gr2yHPq47hm9Po1R8PP859rFNMk,55171
11
+ odoo/addons/automation_oca/i18n/it.po,sha256=w0_U2lLL2r5cPDiYFO1bx9wLEE5pueLECZlaZLu-caw,58038
12
12
  odoo/addons/automation_oca/models/__init__.py,sha256=gRWvgicyFDELSeVnpRow1mGuWjfm3ima2Lo-NqlymKg,318
13
13
  odoo/addons/automation_oca/models/automation_configuration.py,sha256=VaWXg_6EnUnTdLDV_eZnWKXXVU27nGmZR_lnGIeKstA,12086
14
- odoo/addons/automation_oca/models/automation_configuration_step.py,sha256=RrK2LroFzaPY2xjcmssQf6bFTJuk2IB5Fx0LKYhePyY,19626
14
+ odoo/addons/automation_oca/models/automation_configuration_step.py,sha256=3je70PMzMFkJP36L8OlOPIjD7befywVmY47o3tnzFV8,19973
15
15
  odoo/addons/automation_oca/models/automation_filter.py,sha256=W8VM977yXH_hZUKCO8ZDKsvzIjYegoIGMN1QLEvikOY,706
16
16
  odoo/addons/automation_oca/models/automation_record.py,sha256=Q6aO1pbHHqXeWkugzURHc_U2jp9fP2_RGqPmH_Dbl_k,7362
17
- odoo/addons/automation_oca/models/automation_record_step.py,sha256=njKySvUJnVZrqIlG3tERsYFEVbCucc-wmdJgO3aK6sw,15071
17
+ odoo/addons/automation_oca/models/automation_record_step.py,sha256=kgoxSDz8_8LSWIUYcNZ_FF_S50CWnkTrdaMtmuYZiPk,15257
18
18
  odoo/addons/automation_oca/models/automation_tag.py,sha256=mIsuTsLQv8ZLLdykBmvLQ6fLKHJMKZ8qfAwaVibw78c,488
19
19
  odoo/addons/automation_oca/models/link_tracker.py,sha256=F8TxTsq5Mzd1H18RygZn4YDjZs8WIPO-B9o1EhaADYg,1745
20
20
  odoo/addons/automation_oca/models/mail_activity.py,sha256=RIw89CNjEMWRE2azgEHsZeXtr64VU6AGWnv5DOERP4k,470
@@ -23,13 +23,13 @@ odoo/addons/automation_oca/models/mail_thread.py,sha256=a1n52bOGi79RGm8G2LT8VTIk
23
23
  odoo/addons/automation_oca/readme/CONTRIBUTORS.md,sha256=p8_-Mu8Mj7YOCCgizqC5Y02wD8jghcxSizPsYhmQQDs,52
24
24
  odoo/addons/automation_oca/readme/CREDITS.md,sha256=bvu5tCnp4li7NCDhDhQuoWX_1DFfX7RIWUSsiwo7e0w,135
25
25
  odoo/addons/automation_oca/readme/DESCRIPTION.md,sha256=tcf06j1PNB7EKdYZeATHF4zHYShcEQ3p9qlvu3iPPgk,347
26
- odoo/addons/automation_oca/readme/USAGE.md,sha256=egVqZjqsW2NglrzBL3M6_jFtk0uqNAJgFnduM4D9kOo,3334
26
+ odoo/addons/automation_oca/readme/USAGE.md,sha256=4orDugmPwZ35m1QqqOjIrVOeXoCzBX5JdgL0WF9rXCk,3498
27
27
  odoo/addons/automation_oca/security/ir.model.access.csv,sha256=bqg_yjGA2q_wpEVIyYIltmPV8Am3S43bASDcCR6lRz4,1628
28
28
  odoo/addons/automation_oca/security/security.xml,sha256=pT37-cLbQIP--Tzp0fljiyvNBPvakzyBgyf47KEC1xo,1627
29
29
  odoo/addons/automation_oca/static/description/configuration.png,sha256=W8cAn7-cQEVhf7Zy979xMDHi1cKWbDH7uyWkjvGi9gc,55863
30
30
  odoo/addons/automation_oca/static/description/icon.png,sha256=abhQ1HbvsatZ_WVS_G6qroJgWNa1Hppd961RD7vrAug,37729
31
31
  odoo/addons/automation_oca/static/description/icon.svg,sha256=NkJAwQ9YAXML6VIKe90VZzKUZb58-zGNL029-GC8Pm4,4641
32
- odoo/addons/automation_oca/static/description/index.html,sha256=_L9iWcWyb4wTphaqc1kOU3v2y1y7eFnJBpUHpbm45gs,18045
32
+ odoo/addons/automation_oca/static/description/index.html,sha256=qnLdRYyKeBkhjC1FCsMmiil8v_KA7yBUlJI-wBAu44k,18215
33
33
  odoo/addons/automation_oca/static/src/fields/automation_activity/automation_activity.esm.js,sha256=pbzjSHVYdYcMOXzXtC-lyVYrydk_1YRtMVh88XpTo-E,1779
34
34
  odoo/addons/automation_oca/static/src/fields/automation_graph/automation_graph.esm.js,sha256=vbPRaNzH1_wbB0gEBhZvm0gT0VXdgtElQIYeAOJZuNM,3214
35
35
  odoo/addons/automation_oca/static/src/fields/automation_graph/automation_graph.xml,sha256=86VqoFswW3ZppaR0KFG4_giKPeT8vgdC1A1vpBtPjFk,297
@@ -39,13 +39,13 @@ odoo/addons/automation_oca/static/src/views/automation_kanban/automation_kanban_
39
39
  odoo/addons/automation_oca/static/src/views/automation_kanban/automation_kanban_renderer.esm.js,sha256=GjwEFRuQeP6FKie_ODYaqxvv_pYDsj8STWkFtlR3Ki8,1197
40
40
  odoo/addons/automation_oca/tests/__init__.py,sha256=5VS2h2Hl3gUzMQqKgPUYnq-_Wkk7SfD_k0YgTsfXj3g,185
41
41
  odoo/addons/automation_oca/tests/common.py,sha256=Zu5AcWGMgoDKdsQ4VMyhHTnot1f7Hunh4tDH9CSHbXw,3558
42
- odoo/addons/automation_oca/tests/test_automation_action.py,sha256=aFg_OASkQ8Or-CgrgOnCRlc9Z1_1VXPsuj2ui4pCsYA,7606
42
+ odoo/addons/automation_oca/tests/test_automation_action.py,sha256=LLw57To88U6Ercinc0bH49_FRueqKfYHI_FKsw1aA8s,8370
43
43
  odoo/addons/automation_oca/tests/test_automation_activity.py,sha256=OHUMONBVY0pYbmlTCfWzPdJPSYaExCfJCS_LPtpEhuE,6385
44
44
  odoo/addons/automation_oca/tests/test_automation_base.py,sha256=vUQPlxRM-zkJfzslPE4_V4eXq0RSRFCo1BLhrVzi_s8,24421
45
45
  odoo/addons/automation_oca/tests/test_automation_mail.py,sha256=zOzRfhH0-Zz0Jm1TX15efgXibjj7Au19597DZWvAQGc,24704
46
46
  odoo/addons/automation_oca/tests/test_automation_security.py,sha256=iazrh9TJDCLaK1vXKXMNqBf0bizedBd3QxUwCodjesY,3883
47
- odoo/addons/automation_oca/views/automation_configuration.xml,sha256=ZDKnacllotuGnSS2CcM4wY62cWnG6JriosBMF8ZbhJs,25406
48
- odoo/addons/automation_oca/views/automation_configuration_step.xml,sha256=_F8qgV_mflHFdGcrmlnPn8s1yBN_--R2tuyC2kOht7k,9340
47
+ odoo/addons/automation_oca/views/automation_configuration.xml,sha256=VU_Hn1cOjZ_z8MbCAgareo3K1PNof0krjW7Nrz90FYQ,25986
48
+ odoo/addons/automation_oca/views/automation_configuration_step.xml,sha256=Kfjv8sB3OOXTV1705F2oA2GN7FIqNZ9l7iPrK2URIEk,9699
49
49
  odoo/addons/automation_oca/views/automation_filter.xml,sha256=Mx0SBoVk2U3QY-hseKymbOphlK-hOjHdFzLtPgU2jok,2271
50
50
  odoo/addons/automation_oca/views/automation_record.xml,sha256=gFpChe7depWuZS751R3TLC1B4IxzVW5ez2yp-a9VPck,16034
51
51
  odoo/addons/automation_oca/views/automation_record_step.xml,sha256=cBao3BLIo9Db_Mv4VpyugpnTfzMmjLXQ5Eu2aYwD9uE,5263
@@ -56,7 +56,7 @@ odoo/addons/automation_oca/wizards/__init__.py,sha256=1yOQpQirzOswywec7gg_gshvEP
56
56
  odoo/addons/automation_oca/wizards/automation_configuration_test.py,sha256=YK0HD6Ds6B4PMaI97MUpVQaB-wsVTmw6Hpbh532tU-g,1363
57
57
  odoo/addons/automation_oca/wizards/automation_configuration_test.xml,sha256=r9lUzD3SeFSLStlc07iXxO1b9e9RbZdUCrvMA46zfm8,1916
58
58
  odoo/addons/automation_oca/wizards/mail_compose_message.py,sha256=XL6UGz8_fEwniXM80DhQXink4SMnWg7HHR0kHLekMyc,612
59
- odoo_addon_automation_oca-16.0.1.2.0.2.dist-info/METADATA,sha256=gZyBB53sAnx4uYa0qWJBU73pwvdkXVG0KkG2H8eoGwk,7317
60
- odoo_addon_automation_oca-16.0.1.2.0.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
61
- odoo_addon_automation_oca-16.0.1.2.0.2.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
62
- odoo_addon_automation_oca-16.0.1.2.0.2.dist-info/RECORD,,
59
+ odoo_addon_automation_oca-16.0.1.3.0.3.dist-info/METADATA,sha256=RSt4v38IMT4lXpHSvPT1-peqQgDiJxTV6VQqz1m0RKQ,7481
60
+ odoo_addon_automation_oca-16.0.1.3.0.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
61
+ odoo_addon_automation_oca-16.0.1.3.0.3.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
62
+ odoo_addon_automation_oca-16.0.1.3.0.3.dist-info/RECORD,,