- Dear ,
+ Dear ,
The development
- of
+
+ of
+
has been approved on
- .
+
+ with the required time of .
+
Please check and inform colleagues of the current development.
@@ -23,33 +27,38 @@
{{object.project_id.project_manager_id.lang}}
+
+
+ Issue Submitted
+
+ Issue Submitted
+ {{object.project_id.project_manager_id.id}}
+
+
+
+ Dear ,
+
+ The issue
+
+ of
+
+ has submitted by
+
+ on
+ .
+
+ Please check and inform colleagues of the current issue.
+
+
+ Description:
+
+
+
+
+
+
+
+ {{object.project_id.project_manager_id.lang}}
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/deltatech_business_process/i18n/ro.po b/deltatech_business_process/i18n/ro.po
index d79cab311..862805550 100644
--- a/deltatech_business_process/i18n/ro.po
+++ b/deltatech_business_process/i18n/ro.po
@@ -4,10 +4,10 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 16.0+e\n"
+"Project-Id-Version: Odoo Server 16.0+ec\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2024-05-17 10:14+0000\n"
-"PO-Revision-Date: 2024-05-17 10:14+0000\n"
+"POT-Creation-Date: 2024-10-30 11:49+0000\n"
+"PO-Revision-Date: 2024-10-30 11:49+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -15,6 +15,59 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
+#. module: deltatech_business_process
+#: model:mail.template,body_html:deltatech_business_process.email_template_development_approved
+msgid ""
+"
\n"
+"
\n"
+" Dear ,\n"
+" \n"
+" The development\n"
+" \n"
+" of\n"
+" \n"
+" has been approved on\n"
+" \n"
+" with the required time of .\n"
+"\n"
+" \n"
+" Please check and inform colleagues of the current development.\n"
+"\n"
+"\n"
+"
\n"
+"
\n"
+" "
+msgstr ""
+
+#. module: deltatech_business_process
+#: model:mail.template,body_html:deltatech_business_process.email_template_issue_submitted
+msgid ""
+"
\n"
+"
\n"
+" Draga ,\n"
+" \n"
+" Problema\n"
+" \n"
+" din\n"
+" \n"
+" a fost semnalata de\n"
+" \n"
+" pe\n"
+" .\n"
+" \n"
+" Va rugam verificati si anuntati colegi.\n"
+" \n"
+" \n"
+" Descriere:\n"
+" \n"
+"
\n"
+" \n"
+"
\n"
+" \n"
+"
\n"
+" "
+msgstr ""
+
#. module: deltatech_business_process
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_project_kanban
msgid "
"
@@ -35,6 +88,11 @@ msgstr "Pași "
msgid "Tests "
msgstr "Teste "
+#. module: deltatech_business_process
+#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_form
+msgid "Acceptance Tests"
+msgstr "Teste acceptanta"
+
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__message_needaction
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_issue__message_needaction
@@ -146,6 +204,7 @@ msgstr "Număr atașamente"
#. odoo-python
#: code:addons/deltatech_business_process/models/business_process.py:0
#: code:addons/deltatech_business_process/models/business_process_test.py:0
+#: code:addons/deltatech_business_process/models/business_project.py:0
#, python-format
msgid "Attachments"
msgstr "Atașamente"
@@ -234,6 +293,11 @@ msgstr "Pași proces afaceri"
msgid "Business Process Test"
msgstr "Test proces afaceri"
+#. module: deltatech_business_process
+#: model:ir.actions.act_window,name:deltatech_business_process.business_process_test_action_form
+msgid "Business Process Test Form"
+msgstr ""
+
#. module: deltatech_business_process
#: model:ir.ui.menu,name:deltatech_business_process.menu_business_process_report
msgid "Business Processes"
@@ -294,7 +358,7 @@ msgstr "Proces afaceri"
#. module: deltatech_business_process
#: model:ir.model,name:deltatech_business_process.model_business_process_test
msgid "Business process Test"
-msgstr "Teste proces afaceri"
+msgstr "Test proces afaceri"
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_area__process_group_ids
@@ -336,7 +400,7 @@ msgstr "Rol"
#: model:ir.actions.act_window,name:deltatech_business_process.action_business_transaction
#: model:ir.model,name:deltatech_business_process.model_business_transaction
msgid "Business transaction"
-msgstr "Tranzacție de afaceri"
+msgstr "Tranzacție afaceri"
#. module: deltatech_business_process
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_export_form
@@ -395,19 +459,19 @@ msgstr "Completare"
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__completion_dev
msgid "Completion Dev"
-msgstr "Completare dev"
+msgstr "Progres dev"
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__completion_fs
msgid "Completion FS"
-msgstr "Completare FS"
+msgstr "Progres FS"
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__completion_test
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_test__completion_test
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_test_report__completion_test
msgid "Completion Test"
-msgstr "Testare completare"
+msgstr "Progres testare"
#. module: deltatech_business_process
#: model:ir.model.fields,help:deltatech_business_process.field_business_process__completion_bbp
@@ -418,19 +482,19 @@ msgstr "Schița completare afacere"
#. module: deltatech_business_process
#: model:ir.model.fields,help:deltatech_business_process.field_business_development__completion_dev
msgid "Completion development"
-msgstr "Completarea dezvoltarii"
+msgstr "Progres dezvoltare"
#. module: deltatech_business_process
#: model:ir.model.fields,help:deltatech_business_process.field_business_development__completion_fs
msgid "Completion of functional specification"
-msgstr "Completarea funcționalității specificate"
+msgstr "Procent specificație funcțională"
#. module: deltatech_business_process
#: model:ir.model.fields,help:deltatech_business_process.field_business_development__completion_test
#: model:ir.model.fields,help:deltatech_business_process.field_business_process_test__completion_test
#: model:ir.model.fields,help:deltatech_business_process.field_business_process_test_report__completion_test
msgid "Completion test"
-msgstr "Testare completare"
+msgstr "Progres testare"
#. module: deltatech_business_process
#: model:ir.ui.menu,name:deltatech_business_process.menu_config
@@ -445,7 +509,7 @@ msgstr "Durata configurare"
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__responsible_id
msgid "Consultant"
-msgstr "Consultant"
+msgstr ""
#. module: deltatech_business_process
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_export_form
@@ -456,7 +520,12 @@ msgstr "Contacte"
#: model:ir.model.fields.selection,name:deltatech_business_process.selection__business_issue__severity__cosmetic
#: model:ir.model.fields.selection,name:deltatech_business_process.selection__business_open_issue__severity__cosmetic
msgid "Cosmetic"
-msgstr "Cosmetic"
+msgstr ""
+
+#. module: deltatech_business_process
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process__count_acceptance_tests
+msgid "Count Acceptance Tests"
+msgstr "Numar teste acceptanta"
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process__count_developments
@@ -465,6 +534,7 @@ msgstr "Număr dezvoltări"
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process__doc_count
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_project__doc_count
msgid "Count Documents"
msgstr "Număr documente"
@@ -551,7 +621,7 @@ msgstr "Client"
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_report__customer_id
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_test_report__customer_id
msgid "Customer Responsible"
-msgstr "Responsabil client"
+msgstr "Client responsabil"
#. module: deltatech_business_process
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_step_test_from
@@ -635,7 +705,7 @@ msgstr "Date"
#: model:ir.model.fields.selection,name:deltatech_business_process.selection__business_issue__category__defect
#: model:ir.model.fields.selection,name:deltatech_business_process.selection__business_open_issue__category__defect
msgid "Defect"
-msgstr "Defect"
+msgstr ""
#. module: deltatech_business_process
#: model:ir.model.fields.selection,name:deltatech_business_process.selection__business_project__state__deployment
@@ -690,11 +760,22 @@ msgstr "Dezvoltator"
msgid "Development"
msgstr "Dezvoltare"
+#. module: deltatech_business_process
+#: model:mail.template,name:deltatech_business_process.email_template_development_approved
+#: model:mail.template,subject:deltatech_business_process.email_template_development_approved
+msgid "Development Approved"
+msgstr "Aprobare dezvoltare"
+
#. module: deltatech_business_process
#: model:ir.ui.menu,name:deltatech_business_process.menu_business_development_type
msgid "Development Type"
msgstr "Tip dezvoltare"
+#. module: deltatech_business_process
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__development_duration
+msgid "Development duration"
+msgstr "Durata dezvoltare"
+
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process__development_ids
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_step__development_ids
@@ -730,6 +811,7 @@ msgstr "Nume afișat"
#. module: deltatech_business_process
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_form
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_test_form
+#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_project_form
msgid "Documents"
msgstr "Documente"
@@ -762,6 +844,11 @@ msgstr "Efectuat"
msgid "Draft"
msgstr "Ciornă"
+#. module: deltatech_business_process
+#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_form
+msgid "Duration"
+msgstr "Durata"
+
#. module: deltatech_business_process
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_form
msgid "Duration of process"
@@ -875,7 +962,7 @@ msgstr "Export proces afaceri selectate"
#: model:ir.model.fields.selection,name:deltatech_business_process.selection__business_process_test_report__transaction_type__ex
#: model:ir.model.fields.selection,name:deltatech_business_process.selection__business_transaction__transaction_type__ex
msgid "Extern"
-msgstr "Extern"
+msgstr ""
#. module: deltatech_business_process
#: model:ir.model.fields.selection,name:deltatech_business_process.selection__business_process_step_test__result__failed
@@ -950,15 +1037,20 @@ msgstr "Urmăritori (Parteneri)"
msgid "Font awesome icon e.g. fa-tasks"
msgstr ""
+#. module: deltatech_business_process
+#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_project_form
+msgid "Get Duration"
+msgstr "Obtine durata"
+
#. module: deltatech_business_process
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_form
msgid "Go live"
-msgstr "Trecere în producție"
+msgstr "Trecere producție"
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_project__date_go_live
msgid "Go live date"
-msgstr "Data trecere în producție"
+msgstr "Data trecere producție"
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__has_message
@@ -1037,17 +1129,11 @@ msgstr "Dacă este bifat, noi mesaje necesită atenția dvs."
#. module: deltatech_business_process
#: model:ir.model.fields,help:deltatech_business_process.field_business_development__message_has_error
-#: model:ir.model.fields,help:deltatech_business_process.field_business_development__message_has_sms_error
#: model:ir.model.fields,help:deltatech_business_process.field_business_issue__message_has_error
-#: model:ir.model.fields,help:deltatech_business_process.field_business_issue__message_has_sms_error
#: model:ir.model.fields,help:deltatech_business_process.field_business_open_issue__message_has_error
-#: model:ir.model.fields,help:deltatech_business_process.field_business_open_issue__message_has_sms_error
#: model:ir.model.fields,help:deltatech_business_process.field_business_process__message_has_error
-#: model:ir.model.fields,help:deltatech_business_process.field_business_process__message_has_sms_error
#: model:ir.model.fields,help:deltatech_business_process.field_business_process_test__message_has_error
-#: model:ir.model.fields,help:deltatech_business_process.field_business_process_test__message_has_sms_error
#: model:ir.model.fields,help:deltatech_business_process.field_business_project__message_has_error
-#: model:ir.model.fields,help:deltatech_business_process.field_business_project__message_has_sms_error
msgid "If checked, some messages have a delivery error."
msgstr "Dacă este bifat, unele mesaje au erori de livrare."
@@ -1056,11 +1142,21 @@ msgstr "Dacă este bifat, unele mesaje au erori de livrare."
msgid "Implementation"
msgstr "Implementare"
+#. module: deltatech_business_process
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process__responsible_id
+msgid "Implementation Responsible"
+msgstr "Responsabil implementare"
+
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process__implementation_stage
msgid "Implementation stage"
msgstr "Etapa implementare"
+#. module: deltatech_business_process
+#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_filter
+msgid "Implementation state"
+msgstr "Stare implementare"
+
#. module: deltatech_business_process
#: model:ir.actions.act_window,name:deltatech_business_process.action_business_process_from_process_import
#: model:ir.actions.act_window,name:deltatech_business_process.action_business_process_from_project_import
@@ -1112,6 +1208,21 @@ msgstr "Includere aprobat de?"
msgid "Include Customer Responsible?"
msgstr "Includere responsabil client?"
+#. module: deltatech_business_process
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_export__include_durations
+msgid "Include Durations?"
+msgstr "Includere durate?"
+
+#. module: deltatech_business_process
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_export__include_modules
+msgid "Include Modules?"
+msgstr "Includere module?"
+
+#. module: deltatech_business_process
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_export__include_process_state
+msgid "Include Process State?"
+msgstr "Includere stare proces?"
+
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_export__include_responsible
msgid "Include Responsible?"
@@ -1127,6 +1238,11 @@ msgstr "Includere suport?"
msgid "Include Tests in Export?"
msgstr "Includere teste în export?"
+#. module: deltatech_business_process
+#: model:ir.actions.server,name:deltatech_business_process.action_install_modules_for_selected
+msgid "Install Modules for Selected Processes"
+msgstr "Instalare module pentru procesele selectate"
+
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process__instructing_duration
msgid "Instructing duration"
@@ -1144,6 +1260,13 @@ msgstr "Integrare"
msgid "Internal"
msgstr "Intern"
+#. module: deltatech_business_process
+#. odoo-python
+#: code:addons/deltatech_business_process/models/business_process.py:0
+#, python-format
+msgid "Internal Test %s"
+msgstr "Test intern %s"
+
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__message_is_follower
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_issue__message_is_follower
@@ -1159,6 +1282,12 @@ msgstr "Este urmăritor"
msgid "Issue"
msgstr "Problemă"
+#. module: deltatech_business_process
+#: model:mail.template,name:deltatech_business_process.email_template_issue_submitted
+#: model:mail.template,subject:deltatech_business_process.email_template_issue_submitted
+msgid "Issue Submitted"
+msgstr "Problema semnalată"
+
#. module: deltatech_business_process
#: model:ir.actions.act_window,name:deltatech_business_process.action_business_issue
#: model:ir.actions.act_window,name:deltatech_business_process.action_business_issue_report
@@ -1232,6 +1361,11 @@ msgstr "Ultima actualizare de"
msgid "Last Updated on"
msgstr "Ultima actualizare pe"
+#. module: deltatech_business_process
+#: model:ir.model.fields.selection,name:deltatech_business_process.selection__business_project__project_type__local
+msgid "Local"
+msgstr ""
+
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_project__logo
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_project_kanban
@@ -1292,6 +1426,12 @@ msgstr "Minoră"
msgid "Module type"
msgstr "Tip modul"
+#. module: deltatech_business_process
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process__module_ids
+#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_form
+msgid "Modules"
+msgstr "Module"
+
#. module: deltatech_business_process
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_transaction_filter
msgid "More"
@@ -1331,6 +1471,16 @@ msgstr "Termen limită activității mele"
msgid "Name"
msgstr "Nume"
+#. module: deltatech_business_process
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__activity_calendar_event_id
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_issue__activity_calendar_event_id
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_open_issue__activity_calendar_event_id
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process__activity_calendar_event_id
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_test__activity_calendar_event_id
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_project__activity_calendar_event_id
+msgid "Next Activity Calendar Event"
+msgstr ""
+
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__activity_date_deadline
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_issue__activity_date_deadline
@@ -1380,6 +1530,11 @@ msgstr "Nu este bun"
msgid "Not started"
msgstr "Neînceput"
+#. module: deltatech_business_process
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__note
+msgid "Note"
+msgstr ""
+
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__message_needaction_counter
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_issue__message_needaction_counter
@@ -1388,13 +1543,14 @@ msgstr "Neînceput"
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_test__message_needaction_counter
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_project__message_needaction_counter
msgid "Number of Actions"
-msgstr "Număr de acțiuni"
+msgstr "Număr acțiuni"
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_test__doc_count
#: model:ir.model.fields,help:deltatech_business_process.field_business_process__doc_count
+#: model:ir.model.fields,help:deltatech_business_process.field_business_project__doc_count
msgid "Number of documents attached"
-msgstr "Număr de documente atașate"
+msgstr "Număr documente atașate"
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__message_has_error_counter
@@ -1436,6 +1592,13 @@ msgstr "Observație"
msgid "Ok"
msgstr ""
+#. module: deltatech_business_process
+#. odoo-python
+#: code:addons/deltatech_business_process/models/business_process.py:0
+#, python-format
+msgid "Only local projects can install modules"
+msgstr "Doar proiectele locale pot instala module!"
+
#. module: deltatech_business_process
#: model:ir.model.fields.selection,name:deltatech_business_process.selection__business_issue__state__open
#: model:ir.model.fields.selection,name:deltatech_business_process.selection__business_open_issue__state__open
@@ -1506,6 +1669,7 @@ msgstr "Proces"
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process__process_group_id
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_report__process_group_id
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_test_report__process_group_id
+#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_filter
msgid "Process Group"
msgstr "Grup procese"
@@ -1553,6 +1717,7 @@ msgstr "Test proces"
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_project__process_ids
+#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_export_form
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_project_form
msgid "Processes"
msgstr "Procese"
@@ -1576,6 +1741,16 @@ msgstr "Producție"
msgid "Project"
msgstr "Proiect"
+#. module: deltatech_business_process
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_project__project_manager_id
+msgid "Project Manager"
+msgstr "Manager proiect"
+
+#. module: deltatech_business_process
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_project__project_type
+msgid "Project Type"
+msgstr "Tip proiect"
+
#. module: deltatech_business_process
#: model:ir.ui.menu,name:deltatech_business_process.menu_business_project
msgid "Projects"
@@ -1611,6 +1786,11 @@ msgstr "Regressie"
msgid "Rejected"
msgstr "Respins"
+#. module: deltatech_business_process
+#: model:ir.model.fields.selection,name:deltatech_business_process.selection__business_project__project_type__remote
+msgid "Remote"
+msgstr ""
+
#. module: deltatech_business_process
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_issue_form
msgid "Reopen"
@@ -1647,11 +1827,14 @@ msgstr "Resetează la ciornă"
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_step_test__responsible_id
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_project__responsible_id
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_development_filter
+#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_issue_form
+#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_filter
+#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_form
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_step_filter
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_step_form
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_step_test_from
msgid "Responsible"
-msgstr "Responsabili"
+msgstr "Responsabil"
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_test_report__responsible_id
@@ -1663,7 +1846,7 @@ msgstr "Responsabil proces"
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_step__responsible_id
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_test_report__responsible_step_id
msgid "Responsible Step"
-msgstr "Pas responsabil"
+msgstr "Responsabil pas"
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__activity_user_id
@@ -1675,11 +1858,6 @@ msgstr "Pas responsabil"
msgid "Responsible User"
msgstr "Utilizator responsabil"
-#. module: deltatech_business_process
-#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_form
-msgid "Responsibles"
-msgstr "Responsabili"
-
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_step_test__result
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_test_report__result
@@ -1706,16 +1884,6 @@ msgstr "Pornire"
msgid "Running"
msgstr "În desfășurare"
-#. module: deltatech_business_process
-#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__message_has_sms_error
-#: model:ir.model.fields,field_description:deltatech_business_process.field_business_issue__message_has_sms_error
-#: model:ir.model.fields,field_description:deltatech_business_process.field_business_open_issue__message_has_sms_error
-#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process__message_has_sms_error
-#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_test__message_has_sms_error
-#: model:ir.model.fields,field_description:deltatech_business_process.field_business_project__message_has_sms_error
-msgid "SMS Delivery error"
-msgstr "Eroare trimitere SMS"
-
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_test__scope
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_test_report__scope
@@ -1886,6 +2054,11 @@ msgstr "Stadiu BP"
msgid "State Test"
msgstr "Stadiu test"
+#. module: deltatech_business_process
+#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_form
+msgid "Status"
+msgstr ""
+
#. module: deltatech_business_process
#: model:ir.model.fields,help:deltatech_business_process.field_business_development__activity_state
#: model:ir.model.fields,help:deltatech_business_process.field_business_issue__activity_state
@@ -1937,6 +2110,13 @@ msgstr "Testare pas"
msgid "Steps"
msgstr "Pași"
+#. module: deltatech_business_process
+#. odoo-python
+#: code:addons/deltatech_business_process/models/business_process.py:0
+#, python-format
+msgid "Success"
+msgstr ""
+
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process__support_id
msgid "Support"
@@ -1966,7 +2146,12 @@ msgstr ""
#. module: deltatech_business_process
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_test_form
msgid "Test Steps"
-msgstr "Pași de Test"
+msgstr "Pași Test"
+
+#. module: deltatech_business_process
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_step_test__test_started
+msgid "Test started"
+msgstr "Test inceput"
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_test__test_step_ids
@@ -2017,8 +2202,8 @@ msgid ""
"The field Solution Date is required, please complete it to change status to "
"Solved"
msgstr ""
-"Data soluției este obligatorie, vă rugăm să o completați pentru a schimba în "
-"rezolvat"
+"Data soluției este obligatorie, vă rugăm să o completați pentru a schimba în"
+" rezolvat"
#. module: deltatech_business_process
#. odoo-python
@@ -2048,6 +2233,11 @@ msgstr "Acest test este completat."
msgid "Total duration"
msgstr "Durata totală"
+#. module: deltatech_business_process
+#: model:ir.model.fields,field_description:deltatech_business_process.field_business_project__total_project_duration
+msgid "Total project duration"
+msgstr "Durata totală a proiectului"
+
#. module: deltatech_business_process
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_report__transaction_id
#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_step__transaction_id
@@ -2113,24 +2303,11 @@ msgid "Waiting"
msgstr "Așteptare"
#. module: deltatech_business_process
-#: model:ir.model.fields,field_description:deltatech_business_process.field_business_development__website_message_ids
-#: model:ir.model.fields,field_description:deltatech_business_process.field_business_issue__website_message_ids
-#: model:ir.model.fields,field_description:deltatech_business_process.field_business_open_issue__website_message_ids
-#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process__website_message_ids
-#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process_test__website_message_ids
-#: model:ir.model.fields,field_description:deltatech_business_process.field_business_project__website_message_ids
-msgid "Website Messages"
-msgstr "Mesaje site"
-
-#. module: deltatech_business_process
-#: model:ir.model.fields,help:deltatech_business_process.field_business_development__website_message_ids
-#: model:ir.model.fields,help:deltatech_business_process.field_business_issue__website_message_ids
-#: model:ir.model.fields,help:deltatech_business_process.field_business_open_issue__website_message_ids
-#: model:ir.model.fields,help:deltatech_business_process.field_business_process__website_message_ids
-#: model:ir.model.fields,help:deltatech_business_process.field_business_process_test__website_message_ids
-#: model:ir.model.fields,help:deltatech_business_process.field_business_project__website_message_ids
-msgid "Website communication history"
-msgstr "Istoric comunicare site"
+#. odoo-python
+#: code:addons/deltatech_business_process/models/business_process.py:0
+#, python-format
+msgid "Warning"
+msgstr "Avertizare"
#. module: deltatech_business_process
#: model:ir.model.fields.selection,name:deltatech_business_process.selection__business_process_export__state__choose
@@ -2144,6 +2321,11 @@ msgstr "alege"
msgid "get"
msgstr "obține"
+#. module: deltatech_business_process
+#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_development_form
+msgid "Note"
+msgstr "Nota"
+
#. module: deltatech_business_process
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_export_form
#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_import_form
@@ -2151,7 +2333,11 @@ msgid "or"
msgstr "sau"
#. module: deltatech_business_process
-#: model:ir.model.fields,field_description:deltatech_business_process.field_business_process__responsible_id
-#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_step_form
-msgid "Implementation Responsible"
-msgstr "Responsabil implementare"
+#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_test_filter
+msgid "scope"
+msgstr "scop"
+
+#. module: deltatech_business_process
+#: model_terms:ir.ui.view,arch_db:deltatech_business_process.view_business_process_test_filter
+msgid "state"
+msgstr ""
diff --git a/deltatech_business_process/models/business_issue.py b/deltatech_business_process/models/business_issue.py
index 569096f0c..f0454fef7 100644
--- a/deltatech_business_process/models/business_issue.py
+++ b/deltatech_business_process/models/business_issue.py
@@ -1,6 +1,8 @@
# © 2023 Deltatech
# See README.rst file on addons root folder for license details
+from datetime import date
+
from odoo import _, api, fields, models
from odoo.exceptions import UserError
@@ -136,8 +138,15 @@ def create(self, vals):
if not vals.get("code", False):
vals["code"] = self.env["ir.sequence"].next_by_code(self._name)
result = super().create(vals)
+ result.send_mail()
return result
+ def send_mail(self):
+ today = date.today().strftime("%Y-%m-%d")
+ self.sudo().message_post(body=f"Date of approval: {today}")
+ template = self.env.ref("deltatech_business_process.email_template_issue_submitted")
+ self.env["mail.template"].browse(template.id).send_mail(self.id, force_send=True)
+
def name_get(self):
self.browse(self.ids).read(["name", "code"])
return [(item.id, "{}{}".format(item.code and "[%s] " % item.code or "", item.name)) for item in self]
diff --git a/deltatech_business_process/models/business_process.py b/deltatech_business_process/models/business_process.py
index 577c3f65d..452ea978d 100644
--- a/deltatech_business_process/models/business_process.py
+++ b/deltatech_business_process/models/business_process.py
@@ -2,6 +2,7 @@
# See README.rst file on addons root folder for license details
from odoo import _, api, fields, models
+from odoo.exceptions import UserError
class BusinessProcess(models.Model):
@@ -333,14 +334,23 @@ def _start_test(self, scope):
domain = [("process_id", "=", process.id), ("scope", "=", scope)]
test = self.env["business.process.test"].search(domain, limit=1)
if not test:
- test = self.env["business.process.test"].create(
- {
- "name": _("Test %s") % process.code if process.code else process.name,
- "process_id": process.id,
- "tester_id": self.env.user.partner_id.id,
- "scope": scope,
- }
- )
+ if scope == "internal":
+ test = self.env["business.process.test"].create(
+ {
+ "name": _("Internal Test %s") % process.code if process.code else process.name,
+ "process_id": process.id,
+ "tester_id": self.responsible_id.id,
+ "scope": scope,
+ }
+ )
+ else:
+ test = self.env["business.process.test"].create(
+ {
+ "name": _("Test %s") % process.code if process.code else process.name,
+ "process_id": process.id,
+ "scope": scope,
+ }
+ )
test._onchange_process_id()
def _add_followers(self):
@@ -391,3 +401,39 @@ def start_integration_test(self):
def start_user_acceptance_test(self):
self._start_test("user_acceptance")
+
+ def button_install_modules(self):
+ found_modules = False
+ for record in self:
+ if record.project_id.project_type != "local":
+ raise UserError(_("Only local projects can install modules"))
+ modules_to_install = record.module_ids.filtered(lambda m: m.state != "installed")
+ if not modules_to_install:
+ continue
+ for module in modules_to_install:
+ found_modules = True
+ module.button_immediate_install()
+ if not found_modules:
+ notification = {
+ "type": "ir.actions.client",
+ "tag": "display_notification",
+ "params": {
+ "title": _("Warning"),
+ "type": "warning",
+ "message": "No modules to install found",
+ "sticky": False,
+ },
+ }
+ return notification
+ else:
+ notification = {
+ "type": "ir.actions.client",
+ "tag": "display_notification",
+ "params": {
+ "title": _("Success"),
+ "type": "success",
+ "message": "Modules installed successfully",
+ "sticky": False,
+ },
+ }
+ return notification
diff --git a/deltatech_business_process/models/business_process_test.py b/deltatech_business_process/models/business_process_test.py
index 4d4540d53..62c3fe4bd 100644
--- a/deltatech_business_process/models/business_process_test.py
+++ b/deltatech_business_process/models/business_process_test.py
@@ -153,9 +153,9 @@ def action_run(self):
test.process_id.write({"status_user_acceptance_test": "in_progress"})
if not self.tester_id:
self.tester_id = self.env.user.partner_id
- for step in self.test_step_ids:
- if not step.responsible_id:
- step.responsible_id = self.env.user.partner_id
+ for step in self.test_step_ids:
+ if not step.responsible_id:
+ step.responsible_id = self.tester_id
for steps in self.test_step_ids:
steps.write({"test_started": True})
diff --git a/deltatech_business_process/models/business_project.py b/deltatech_business_process/models/business_project.py
index 15d3ef4c3..0172cd47a 100644
--- a/deltatech_business_process/models/business_project.py
+++ b/deltatech_business_process/models/business_project.py
@@ -48,9 +48,9 @@ class BusinessProject(models.Model):
)
project_manager_id = fields.Many2one(
string="Project Manager",
- comodel_name="res.users",
- domain="[('is_company', '=', False)]",
+ comodel_name="res.partner",
)
+ project_type = fields.Selection([("remote", "Remote"), ("local", "Local")], string="Project Type", default="remote")
@api.model
def create(self, vals):
diff --git a/deltatech_business_process/static/description/index.html b/deltatech_business_process/static/description/index.html
index 72a708c1f..e80bcb462 100644
--- a/deltatech_business_process/static/description/index.html
+++ b/deltatech_business_process/static/description/index.html
@@ -14,7 +14,7 @@ Business process
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-!! source digest: sha256:447452d27b9f597f574a682424e5c5622e855f8c48ccf9e85bbc9e4290623786
+!! source digest: sha256:af393b3162dc6262e390d197936c5873006e99cafa83fbdab921943a12da3d64
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
diff --git a/deltatech_business_process/views/business_development_view.xml b/deltatech_business_process/views/business_development_view.xml
index 64c8f6708..8a12e612b 100644
--- a/deltatech_business_process/views/business_development_view.xml
+++ b/deltatech_business_process/views/business_development_view.xml
@@ -88,7 +88,7 @@
-
+
diff --git a/deltatech_business_process/views/business_issue_view.xml b/deltatech_business_process/views/business_issue_view.xml
index 472ae98e5..9d2d85cfe 100644
--- a/deltatech_business_process/views/business_issue_view.xml
+++ b/deltatech_business_process/views/business_issue_view.xml
@@ -89,10 +89,10 @@
-
+
-
+
diff --git a/deltatech_business_process/views/business_process_view.xml b/deltatech_business_process/views/business_process_view.xml
index d805a2698..13a3965c4 100644
--- a/deltatech_business_process/views/business_process_view.xml
+++ b/deltatech_business_process/views/business_process_view.xml
@@ -100,7 +100,6 @@
statusbar_colors='{"draft":"red","test":"green","production":"green"}'
/>
-
@@ -399,4 +398,13 @@
+
+ Install Modules for Selected Processes
+
+ code
+ action = records.button_install_modules()
+
+
+
+
diff --git a/deltatech_business_process/views/business_project_view.xml b/deltatech_business_process/views/business_project_view.xml
index 170fd85f4..54cb94b43 100644
--- a/deltatech_business_process/views/business_project_view.xml
+++ b/deltatech_business_process/views/business_project_view.xml
@@ -42,7 +42,7 @@
-
+
@@ -72,6 +72,7 @@
+
@@ -140,23 +141,23 @@
diff --git a/deltatech_business_process/wizard/export_business_process.py b/deltatech_business_process/wizard/export_business_process.py
index a0250d2b4..ecab9cb64 100644
--- a/deltatech_business_process/wizard/export_business_process.py
+++ b/deltatech_business_process/wizard/export_business_process.py
@@ -21,6 +21,7 @@ class BusinessProcessExport(models.TransientModel):
include_support = fields.Boolean(string="Include Support?")
include_durations = fields.Boolean(string="Include Durations?")
include_process_state = fields.Boolean(string="Include Process State?")
+ include_modules = fields.Boolean(string="Include Modules?")
state = fields.Selection([("choose", "choose"), ("get", "get")], default="choose") # choose period # get the file
def do_export(self):
@@ -39,6 +40,7 @@ def do_export(self):
"steps": [],
"include_tests": self.include_tests,
"include_durations": self.include_durations,
+ "include_modules": self.include_modules,
"tests": [],
"responsible": "",
"customer": "",
@@ -69,6 +71,8 @@ def do_export(self):
process_data["approved"] = process.approved_id.name
if self.include_support:
process_data["support"] = process.support_id.name
+ if self.include_modules:
+ process_data["modules"] = [module.name for module in process.module_ids]
for step in process.step_ids:
step_data = {
"name": step.name,
diff --git a/deltatech_business_process/wizard/export_business_process_view.xml b/deltatech_business_process/wizard/export_business_process_view.xml
index 085181018..b379a8fef 100644
--- a/deltatech_business_process/wizard/export_business_process_view.xml
+++ b/deltatech_business_process/wizard/export_business_process_view.xml
@@ -10,8 +10,9 @@
Export selected business processes
-
+
+
diff --git a/deltatech_business_process/wizard/import_business_process.py b/deltatech_business_process/wizard/import_business_process.py
index 7bf86c91b..c01feb384 100644
--- a/deltatech_business_process/wizard/import_business_process.py
+++ b/deltatech_business_process/wizard/import_business_process.py
@@ -78,6 +78,7 @@ def do_import(self):
data_migration_duration = process_data["data_migration_duration"]
testing_duration = process_data["testing_duration"]
duration_for_completion = process_data["duration_for_completion"]
+
process = self.env["business.process"].search(domain, limit=1)
if not process:
process = self.env["business.process"].create(
@@ -138,152 +139,165 @@ def do_import(self):
"module_type": process_data["module_type"],
}
)
+ self.import_modules(process_data, process)
+ self.import_steps(process_data, process)
+ self.import_test(process_data, process)
- for step_data in process_data["steps"]:
- area = self.env["business.area"]
- if step_data["area"]:
- area = self.env["business.area"].search([("name", "=", step_data["area"])], limit=1)
- if not area:
- area = self.env["business.area"].create({"name": step_data["area"]})
- transaction = self.env["business.transaction"]
- if step_data["transaction"]:
- transaction = self.env["business.transaction"].search(
- [("name", "=", step_data["transaction"])], limit=1
- )
- if not transaction:
- transaction = self.env["business.transaction"].create({"name": step_data["transaction"]})
+ self.write({"state": "choose"})
+ return {
+ "type": "ir.actions.act_window",
+ "res_model": self._name,
+ "view_mode": "form",
+ "view_type": "form",
+ "res_id": self.id,
+ "views": [(False, "form")],
+ "target": "new",
+ }
+
+ def import_modules(self, process_data, process):
+ if "include_modules" in process_data and process_data["include_modules"]:
+ for module in process_data["modules"]:
+ module = self.env["ir.module.module"].search([("name", "=", module)], limit=1)
+ if module:
+ process.module_ids = [(4, module.id)]
- domain = [("code", "=", step_data["code"]), ("process_id", "=", process.id)]
- step = self.env["business.process.step"].search(domain, limit=1)
- if not step:
- self.env["business.process.step"].create(
+ def import_steps(self, process_data, process):
+ for step_data in process_data["steps"]:
+ area = self.env["business.area"]
+ if step_data["area"]:
+ area = self.env["business.area"].search([("name", "=", step_data["area"])], limit=1)
+ if not area:
+ area = self.env["business.area"].create({"name": step_data["area"]})
+ transaction = self.env["business.transaction"]
+ if step_data["transaction"]:
+ transaction = self.env["business.transaction"].search(
+ [("name", "=", step_data["transaction"])], limit=1
+ )
+ if not transaction:
+ transaction = self.env["business.transaction"].create({"name": step_data["transaction"]})
+
+ domain = [("code", "=", step_data["code"]), ("process_id", "=", process.id)]
+ step = self.env["business.process.step"].search(domain, limit=1)
+ if not step:
+ self.env["business.process.step"].create(
+ {
+ "name": step_data["name"],
+ "code": step_data["code"],
+ "area_id": area.id,
+ "description": step_data["description"],
+ "transaction_id": transaction.id,
+ "details": step_data["details"],
+ "sequence": step_data["sequence"],
+ "process_id": process.id,
+ }
+ )
+ else:
+ step.write(
+ {
+ "name": step_data["name"],
+ "code": step_data["code"],
+ "description": step_data["description"],
+ "area_id": area.id,
+ "transaction_id": transaction.id,
+ "details": step_data["details"],
+ "sequence": step_data["sequence"],
+ "process_id": process.id,
+ }
+ )
+
+ def import_test(self, process_data, process):
+ if process_data["include_tests"]:
+ for test_data in process_data["tests"]:
+ tester = self.env["res.partner"]
+ if test_data["tester"]:
+ tester = self.env["res.partner"].search([("name", "=", test_data["tester"])], limit=1)
+ if not tester:
+ tester = self.env["res.partner"].create({"name": test_data["tester"]})
+ domain = [("name", "=", test_data["name"]), ("process_id", "=", process.id)]
+ test = self.env["business.process.test"].search(domain, limit=1)
+ if not test:
+ self.env["business.process.test"].create(
{
- "name": step_data["name"],
- "code": step_data["code"],
- "area_id": area.id,
- "description": step_data["description"],
- "transaction_id": transaction.id,
- "details": step_data["details"],
- "sequence": step_data["sequence"],
+ "name": test_data["name"],
"process_id": process.id,
+ "tester_id": tester.id,
+ "scope": test_data["scope"],
+ "date_start": test_data["date_start"],
+ "date_end": test_data["date_end"],
+ "state": test_data["state"],
}
)
else:
- step.write(
+ test.write(
{
- "name": step_data["name"],
- "code": step_data["code"],
- "description": step_data["description"],
- "area_id": area.id,
- "transaction_id": transaction.id,
- "details": step_data["details"],
- "sequence": step_data["sequence"],
+ "name": test_data["name"],
"process_id": process.id,
+ "tester_id": tester,
+ "scope": test_data["scope"],
+ "date_start": test_data["date_start"],
+ "date_end": test_data["date_end"],
+ "state": test_data["state"],
}
)
- if process_data["include_tests"]:
- for test_data in process_data["tests"]:
- tester = self.env["res.partner"]
- if test_data["tester"]:
- tester = self.env["res.partner"].search([("name", "=", test_data["tester"])], limit=1)
- if not tester:
- tester = self.env["res.partner"].create({"name": test_data["tester"]})
- domain = [("name", "=", test_data["name"]), ("process_id", "=", process.id)]
- test = self.env["business.process.test"].search(domain, limit=1)
- if not test:
- self.env["business.process.test"].create(
+ for step_test_data in test_data["test_steps"]:
+ transaction = self.env["business.transaction"]
+ if step_test_data["transaction"]:
+ transaction = self.env["business.transaction"].search(
+ [("name", "=", step_test_data["transaction"])], limit=1
+ )
+ if not transaction:
+ transaction = self.env["business.transaction"].create(
+ {"name": step_test_data["transaction"]}
+ )
+ step_in_test = self.env["business.transaction"]
+ if step_test_data["step"]:
+ step_in_test = self.env["business.process.step"].search(
+ [("name", "=", step_test_data["step"]), ("process_id", "=", process.id)], limit=1
+ )
+ test_of_step = self.env["business.process.test"]
+ if step_test_data["test"]:
+ test_of_step = self.env["business.process.test"].search(
+ [("name", "=", step_test_data["test"]), ("process_id", "=", process.id)], limit=1
+ )
+ responsible = self.env["res.partner"]
+ if "responsible" in step_test_data and step_test_data["responsible"]:
+ responsible = self.env["res.partner"].search(
+ [("name", "=", step_test_data["responsible"])], limit=1
+ )
+ if not responsible:
+ responsible = self.env["res.partner"].create({"name": step_test_data["responsible"]})
+ domain = [("name", "=", step_test_data["name"]), ("process_test_id", "=", test_of_step.id)]
+ step_test = self.env["business.process.step.test"].search(domain, limit=1)
+ if not step_test:
+ self.env["business.process.step.test"].create(
{
- "name": test_data["name"],
+ "name": step_test_data["name"],
"process_id": process.id,
- "tester_id": tester.id,
- "scope": test_data["scope"],
- "date_start": test_data["date_start"],
- "date_end": test_data["date_end"],
- "state": test_data["state"],
+ "transaction_id": transaction.id,
+ "step_id": step_in_test.id,
+ "process_test_id": test_of_step.id,
+ "result": step_test_data["result"] if "result" in step_test_data else "draft",
+ "test_started": (
+ step_test_data["test_started"] if "test_started" in step_test_data else True
+ ),
+ "responsible_id": responsible.id,
}
)
else:
- test.write(
+ step_test.write(
{
- "name": test_data["name"],
+ "name": step_test_data["name"],
"process_id": process.id,
- "tester_id": tester,
- "scope": test_data["scope"],
- "date_start": test_data["date_start"],
- "date_end": test_data["date_end"],
- "state": test_data["state"],
+ "transaction_id": transaction.id,
+ "step_id": step_in_test.id,
+ "process_test_id": test_of_step.id,
+ "result": step_test_data["result"] if "result" in step_test_data else "draft",
+ "test_started": (
+ step_test_data["test_started"] if "test_started" in step_test_data else True
+ ),
+ "responsible_id": responsible.id,
}
)
- for step_test_data in test_data["test_steps"]:
- transaction = self.env["business.transaction"]
- if step_test_data["transaction"]:
- transaction = self.env["business.transaction"].search(
- [("name", "=", step_test_data["transaction"])], limit=1
- )
- if not transaction:
- transaction = self.env["business.transaction"].create(
- {"name": step_test_data["transaction"]}
- )
- step_in_test = self.env["business.transaction"]
- if step_test_data["step"]:
- step_in_test = self.env["business.process.step"].search(
- [("name", "=", step_test_data["step"]), ("process_id", "=", process.id)], limit=1
- )
- test_of_step = self.env["business.process.test"]
- if step_test_data["test"]:
- test_of_step = self.env["business.process.test"].search(
- [("name", "=", step_test_data["test"]), ("process_id", "=", process.id)], limit=1
- )
- responsible = self.env["res.partner"]
- if "responsible" in step_test_data and step_test_data["responsible"]:
- responsible = self.env["res.partner"].search(
- [("name", "=", step_test_data["responsible"])], limit=1
- )
- if not responsible:
- responsible = self.env["res.partner"].create({"name": step_test_data["responsible"]})
- domain = [("name", "=", step_test_data["name"]), ("process_test_id", "=", test_of_step.id)]
- step_test = self.env["business.process.step.test"].search(domain, limit=1)
- if not step_test:
- self.env["business.process.step.test"].create(
- {
- "name": step_test_data["name"],
- "process_id": process.id,
- "transaction_id": transaction.id,
- "step_id": step_in_test.id,
- "process_test_id": test_of_step.id,
- "result": step_test_data["result"] if "result" in step_test_data else "draft",
- "test_started": (
- step_test_data["test_started"] if "test_started" in step_test_data else True
- ),
- "responsible_id": responsible.id,
- }
- )
- else:
- step_test.write(
- {
- "name": step_test_data["name"],
- "process_id": process.id,
- "transaction_id": transaction.id,
- "step_id": step_in_test.id,
- "process_test_id": test_of_step.id,
- "result": step_test_data["result"] if "result" in step_test_data else "draft",
- "test_started": (
- step_test_data["test_started"] if "test_started" in step_test_data else True
- ),
- "responsible_id": responsible.id,
- }
- )
-
- self.write({"state": "choose"})
- return {
- "type": "ir.actions.act_window",
- "res_model": self._name,
- "view_mode": "form",
- "view_type": "form",
- "res_id": self.id,
- "views": [(False, "form")],
- "target": "new",
- }
def do_back(self):
self.write({"state": "get"})