odoo-addon-openupgrade-scripts 17.0.1.0.1.343__py3-none-any.whl → 17.0.1.0.1.349__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.
@@ -0,0 +1,8 @@
1
+ cdcffd9dd7e---Models in module 'hr_work_entry'---
2
+ ---Fields in module 'hr_work_entry'---
3
+ hr_work_entry / hr.work.entry.type / external_code (char) : NEW
4
+ # NOTHING TO DO: new field will be created by ORM
5
+
6
+ ---XML records in module 'hr_work_entry'---
7
+ NEW hr.work.entry.type: hr_work_entry.overtime_work_entry_type
8
+ # NOTHING TO DO: new data entry will be created by ORM
@@ -0,0 +1,5 @@
1
+ ---Models in module 'hr_work_entry_holidays'---
2
+ ---Fields in module 'hr_work_entry_holidays'---
3
+ ---XML records in module 'hr_work_entry_holidays'---
4
+ NEW ir.ui.view: hr_work_entry_holidays.view_holiday_status_normal_tree
5
+ # NOTHING TO DO: new view will be created by ORM
@@ -0,0 +1,5 @@
1
+ ---Models in module 'project_timesheet_holidays'---
2
+ ---Fields in module 'project_timesheet_holidays'---
3
+ ---XML records in module 'project_timesheet_holidays'---
4
+ NEW ir.ui.view: project_timesheet_holidays.leave_task_form_view
5
+ # NOTHING TO DO
@@ -1,8 +1,43 @@
1
- # Copyright 2024 Tecnativa - Pilar Vargas
1
+ # Copyright 2024-2025 Tecnativa - Pilar Vargas
2
2
  # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3
3
  from openupgradelib import openupgrade
4
+ from psycopg2.extras import Json
5
+
6
+
7
+ def fill_event_question(env):
8
+ # Query ‘name’, ‘email’, ‘phone’ fields of ‘res.partner’ with their translations
9
+ env.cr.execute(
10
+ """
11
+ SELECT imf.name, imf.field_description
12
+ FROM ir_model_fields AS imf
13
+ JOIN ir_model AS im ON imf.model_id = im.id
14
+ WHERE im.model = 'res.partner'
15
+ AND imf.name IN ('name', 'email', 'phone')
16
+ """
17
+ )
18
+ field_descriptions = dict(env.cr.fetchall())
19
+ question_types = [
20
+ ("name", True),
21
+ ("email", True),
22
+ ("phone", False),
23
+ ]
24
+ for qtype, mandatory in question_types:
25
+ title_json = field_descriptions.get(qtype)
26
+ env.cr.execute(
27
+ """
28
+ INSERT INTO event_question (
29
+ event_id, title, question_type,
30
+ is_mandatory_answer, once_per_order,
31
+ sequence, create_date, write_date
32
+ )
33
+ SELECT ee.id, %s, %s, %s, FALSE, 10, now(), now()
34
+ FROM event_event AS ee
35
+ """,
36
+ (Json(title_json), qtype, mandatory),
37
+ )
4
38
 
5
39
 
6
40
  @openupgrade.migrate()
7
41
  def migrate(env, version):
8
42
  openupgrade.load_data(env, "website_event", "17.0.1.4/noupdate_changes.xml")
43
+ fill_event_question(env)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-openupgrade_scripts
3
- Version: 17.0.1.0.1.343
3
+ Version: 17.0.1.0.1.349
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo>=17.0a,<17.1dev
6
6
  Requires-Dist: openupgradelib
@@ -199,8 +199,10 @@ odoo/addons/openupgrade_scripts/scripts/hr_timesheet_attendance/17.0.1.1/post-mi
199
199
  odoo/addons/openupgrade_scripts/scripts/hr_timesheet_attendance/17.0.1.1/upgrade_analysis.txt,sha256=BuiW1HztzK7B4xdg5UVhWJFTSc2Ra5msHmDDNcjsYek,233
200
200
  odoo/addons/openupgrade_scripts/scripts/hr_timesheet_attendance/17.0.1.1/upgrade_analysis_work.txt,sha256=DsNLOT3o2HTvyxKdxrWwgVT1h5BJtGWJJb-XvkOO-zQ,279
201
201
  odoo/addons/openupgrade_scripts/scripts/hr_work_entry/17.0.1.0/upgrade_analysis.txt,sha256=HjLcWFrP1MUO3f21UUH1ejUur7wQdp0u44OzKK29pq0,264
202
+ odoo/addons/openupgrade_scripts/scripts/hr_work_entry/17.0.1.0/upgrade_analysis_work.txt,sha256=hOGeraQZJICZ2v3azHDda38AkROuo6RrgqlseHUOPls,381
202
203
  odoo/addons/openupgrade_scripts/scripts/hr_work_entry_contract/17.0.1.0/upgrade_analysis.txt,sha256=ci4PEjbKpDZr4lAikNgyQSjrVYKMRw-bXpm7DeZZJ6Y,189
203
204
  odoo/addons/openupgrade_scripts/scripts/hr_work_entry_holidays/17.0.1.0/upgrade_analysis.txt,sha256=xiIE52fmSt8O6Eas8502Dg-Rb1ht_MPZZuifH2wuJyY,220
205
+ odoo/addons/openupgrade_scripts/scripts/hr_work_entry_holidays/17.0.1.0/upgrade_analysis_work.txt,sha256=FO1HZRVyb7P__RD4oI7Mi4FvF70tCyhp4rnk8NOt6FA,269
204
206
  odoo/addons/openupgrade_scripts/scripts/iap/17.0.1.1/upgrade_analysis.txt,sha256=AvYS4Q0MRIMGV99LTKJdHZLv6qN8ItMupPDQCOLB8LQ,485
205
207
  odoo/addons/openupgrade_scripts/scripts/iap/17.0.1.1/upgrade_analysis_work.txt,sha256=R3HVGCvxYey0MBbdjElIel-86kMfaNCiEEzaSSk067U,535
206
208
  odoo/addons/openupgrade_scripts/scripts/iap_crm/17.0.1.0/upgrade_analysis.txt,sha256=Qxdh9V6HQd4HpmXsmxEMxN3Vu7y8Q6v0NWL3ZrRK1oA,144
@@ -552,6 +554,7 @@ odoo/addons/openupgrade_scripts/scripts/project_mrp/17.0.1.0/upgrade_analysis.tx
552
554
  odoo/addons/openupgrade_scripts/scripts/project_purchase/17.0.1.0/upgrade_analysis.txt,sha256=jgjpdClHsIsq53eXrIju1wh8NCuO-1F-e5flC_6q39k,171
553
555
  odoo/addons/openupgrade_scripts/scripts/project_sms/17.0.1.0/upgrade_analysis.txt,sha256=dR99xE_4XIcYrpFBaImCpc-lyQqpXvh7cCaCftuygr0,156
554
556
  odoo/addons/openupgrade_scripts/scripts/project_timesheet_holidays/17.0.1.0/upgrade_analysis.txt,sha256=4IIM7egSe9vXluupDMJC7lvBiT3_Ap054Pw0nK8r_z4,225
557
+ odoo/addons/openupgrade_scripts/scripts/project_timesheet_holidays/17.0.1.0/upgrade_analysis_work.txt,sha256=M3mz7NtPFHKsYftN8T0s6lMvq_NEanZgdcejReuINoE,241
555
558
  odoo/addons/openupgrade_scripts/scripts/project_todo/17.0.1.0/noupdate_changes.xml,sha256=h-UaEC47MTkO3y5SHt-6RYHqbeD7OBlaJ2VEvKHIAfA,452
556
559
  odoo/addons/openupgrade_scripts/scripts/project_todo/17.0.1.0/post_migration.py,sha256=khEBjdY9rvbihwqrzVkNq7rdIRcl2a5ItUNor7CzQzc,598
557
560
  odoo/addons/openupgrade_scripts/scripts/project_todo/17.0.1.0/pre-migration.py,sha256=cvpSciEp2NMnMxWj8PJ76mklegRzcx8dfRaeUY_3OPg,3061
@@ -693,7 +696,7 @@ odoo/addons/openupgrade_scripts/scripts/website_crm_livechat/17.0.1.0/upgrade_an
693
696
  odoo/addons/openupgrade_scripts/scripts/website_crm_partner_assign/17.0.1.2/upgrade_analysis.txt,sha256=Y3DLpC8wNPscsQj-3XGZB2kGiktdZWkKCCYgmJFnvAE,300
694
697
  odoo/addons/openupgrade_scripts/scripts/website_customer/17.0.1.0/upgrade_analysis.txt,sha256=ml1mfj5PM97j8y7LfCPPth7JblWYmkrfbyKGGTYkN8o,617
695
698
  odoo/addons/openupgrade_scripts/scripts/website_event/17.0.1.4/noupdate_changes.xml,sha256=gGQrjDSSR2tbBNI1ZWxgjyyvhLXa6EY545sKlmZ-X4k,672
696
- odoo/addons/openupgrade_scripts/scripts/website_event/17.0.1.4/post-migration.py,sha256=aIpppLlR8o0ijY2pOQa5zjWc_80e0ozzxymvwvsKoJo,279
699
+ odoo/addons/openupgrade_scripts/scripts/website_event/17.0.1.4/post-migration.py,sha256=75vEbHggnp_jnbfHtfP-IZzA34qZfM1F_iEm_MgUIC4,1414
697
700
  odoo/addons/openupgrade_scripts/scripts/website_event/17.0.1.4/upgrade_analysis.txt,sha256=abK1mxe_Fle97MXC33KuYTvk4H-ayf3QIot1gwHqtqY,6801
698
701
  odoo/addons/openupgrade_scripts/scripts/website_event/17.0.1.4/upgrade_analysis_work.txt,sha256=9pg19jZDdnlNLhHBoXn55XofDkXtneSeWrEYGW1LlpE,6997
699
702
  odoo/addons/openupgrade_scripts/scripts/website_event_booth/17.0.1.0/upgrade_analysis.txt,sha256=c6fXPFpRf4wBL-wo1LC_27EfLNr8mZHuCQ3qdcYz1G0,615
@@ -763,7 +766,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
763
766
  odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
764
767
  odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
765
768
  odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
766
- odoo_addon_openupgrade_scripts-17.0.1.0.1.343.dist-info/METADATA,sha256=jfrf0mPeMf9sDhOD-5q0XVzVwMNS4NDZoUxHWJjAQkw,3786
767
- odoo_addon_openupgrade_scripts-17.0.1.0.1.343.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
768
- odoo_addon_openupgrade_scripts-17.0.1.0.1.343.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
769
- odoo_addon_openupgrade_scripts-17.0.1.0.1.343.dist-info/RECORD,,
769
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.349.dist-info/METADATA,sha256=_smMaeRgvEWZyRXcJMnt4U18RPs4eusgMhitf1XHdu8,3786
770
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.349.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
771
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.349.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
772
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.349.dist-info/RECORD,,