otrs-somconnexio 0.6.5__py2.py3-none-any.whl → 0.6.7__py2.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.
- otrs_somconnexio/otrs_models/provision_dynamic_fields.py +6 -1
- otrs_somconnexio/otrs_models/ticket_types/we_call_you_ticket.py +4 -1
- {otrs_somconnexio-0.6.5.dist-info → otrs_somconnexio-0.6.7.dist-info}/METADATA +1 -1
- {otrs_somconnexio-0.6.5.dist-info → otrs_somconnexio-0.6.7.dist-info}/RECORD +8 -8
- tests/otrs_models/test_router_4G_dynamic_fields.py +2 -2
- tests/otrs_models/ticket_types/test_we_call_you.py +7 -2
- {otrs_somconnexio-0.6.5.dist-info → otrs_somconnexio-0.6.7.dist-info}/WHEEL +0 -0
- {otrs_somconnexio-0.6.5.dist-info → otrs_somconnexio-0.6.7.dist-info}/top_level.txt +0 -0
|
@@ -92,7 +92,12 @@ class ProvisionDynamicFields:
|
|
|
92
92
|
return DynamicField(name="TecDelServei", value=self.service_data.technology)
|
|
93
93
|
|
|
94
94
|
def _sales_team(self):
|
|
95
|
-
|
|
95
|
+
"""odoo crm model team_id field mapping"""
|
|
96
|
+
sales_team_dct = {
|
|
97
|
+
"Residential": "residencial",
|
|
98
|
+
"Business": "empreses",
|
|
99
|
+
"Sales": "vendes",
|
|
100
|
+
}
|
|
96
101
|
return DynamicField(
|
|
97
102
|
name="equipVendes",
|
|
98
103
|
value=sales_team_dct.get(self.service_data.sales_team, ""),
|
|
@@ -34,8 +34,11 @@ class WeCallYouTicket(BaseCustomerTicket):
|
|
|
34
34
|
return {
|
|
35
35
|
"personaContacte": self.fields["name"],
|
|
36
36
|
"horariTrucada": self.fields["schedule"],
|
|
37
|
-
"telefonContacte": self.fields
|
|
37
|
+
"telefonContacte": self.fields.get("phone", "").replace(" ", ""),
|
|
38
38
|
"motiuTrucada": self.fields["reason"],
|
|
39
|
+
"referral": self.fields.get("referral"),
|
|
40
|
+
"rgpd": "1",
|
|
41
|
+
"nouEmail": self.fields.get("email"),
|
|
39
42
|
"midaEmpresa": self.fields.get("company_size"),
|
|
40
43
|
}
|
|
41
44
|
|
|
@@ -20,7 +20,7 @@ otrs_somconnexio/otrs_models/mobile_dynamic_fields.py,sha256=tPRieBkGskBVySuSJ6Z
|
|
|
20
20
|
otrs_somconnexio/otrs_models/mobile_ticket.py,sha256=NQb809r71CYg76jWvsI55-KdM1Oiysg9zhSCuS67fYU,1171
|
|
21
21
|
otrs_somconnexio/otrs_models/providers.py,sha256=Jy5lm_gCuwy_BhpNE5JJ5-TrE8aFQpZvMiYZ-PTlgqs,181
|
|
22
22
|
otrs_somconnexio/otrs_models/provision_article.py,sha256=jONH4lHzjg2jyx_mxjghw503oUT9VI9QwZrJ25HdOS0,469
|
|
23
|
-
otrs_somconnexio/otrs_models/provision_dynamic_fields.py,sha256=
|
|
23
|
+
otrs_somconnexio/otrs_models/provision_dynamic_fields.py,sha256=pjTkPt5OBTDWBmeszfwnLE5KeoyNLgw72gEtGWzNIHI,3562
|
|
24
24
|
otrs_somconnexio/otrs_models/provision_ticket.py,sha256=g8URtZbUQpwxNfybWhEoxtf9JyYJRHKjO_MU4MWgd7I,2449
|
|
25
25
|
otrs_somconnexio/otrs_models/router_4G_data.py,sha256=EQIVxVstFswmEcOHzzV1ZyDYaadiU7lbunb5CJg6xAM,194
|
|
26
26
|
otrs_somconnexio/otrs_models/router_4G_dynamic_fields.py,sha256=NVrfwD2Mj1TTzOC8NYna1XQYXEN6ffAfovlP9VAIHh4,403
|
|
@@ -82,7 +82,7 @@ otrs_somconnexio/otrs_models/ticket_types/change_tariff_ticket.py,sha256=2oncxRb
|
|
|
82
82
|
otrs_somconnexio/otrs_models/ticket_types/change_tariff_ticket_mobile_pack.py,sha256=pu8QItdaICaX2DMvZ7h29Ii_HJVsKWC2lm6UKl145FQ,1844
|
|
83
83
|
otrs_somconnexio/otrs_models/ticket_types/change_tariff_ticket_shared_bonds.py,sha256=CTesCN0NVD6lfTQMKC7nR6RXGjktfYVWFsthg69EnaQ,731
|
|
84
84
|
otrs_somconnexio/otrs_models/ticket_types/check_coverage_ticket.py,sha256=mHMx4eNo8rq0b5kf8ay0tTcziweS82D2O4N-atNWYv4,1866
|
|
85
|
-
otrs_somconnexio/otrs_models/ticket_types/we_call_you_ticket.py,sha256=
|
|
85
|
+
otrs_somconnexio/otrs_models/ticket_types/we_call_you_ticket.py,sha256=E1YlNvTmCdKD_dCtDYcq3YrMDZfgOhZqSsSZ2I5K7sw,1807
|
|
86
86
|
otrs_somconnexio/responses/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
87
87
|
otrs_somconnexio/responses/ticket_creation.py,sha256=32Iigeg2TO422M2XYaiei57KpimnkB1tgnIexiEhi-E,735
|
|
88
88
|
otrs_somconnexio/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -132,7 +132,7 @@ tests/otrs_models/test_mobile_paused_ticket.py,sha256=JiSJudIgW9vFezEnrx7KgL0rXi
|
|
|
132
132
|
tests/otrs_models/test_mobile_ticket.py,sha256=6KAMXFMK-hnpbY26RoavTsYojT7cbDO901RCMRUOcfk,4607
|
|
133
133
|
tests/otrs_models/test_provision_article.py,sha256=SwTA96si0tundnu6lGCJGQcaOpnkRnKUYRKO9NcsflI,1773
|
|
134
134
|
tests/otrs_models/test_router_4G_data.py,sha256=3zKZzWd21j8q4oXFG-Pl1Ugtkp4J0_RZx8HtHRzpfKM,1443
|
|
135
|
-
tests/otrs_models/test_router_4G_dynamic_fields.py,sha256=
|
|
135
|
+
tests/otrs_models/test_router_4G_dynamic_fields.py,sha256=2bZRHNjL079bacUk02BFJlnkJbaqolJB3yj6XXrg8mU,20964
|
|
136
136
|
tests/otrs_models/test_router_4G_ticket.py,sha256=BMdnhAdnmvYfjyxvRN0dcCyS1hMFESV8EgAsCdHbFAo,4496
|
|
137
137
|
tests/otrs_models/test_service.py,sha256=fLFyJ5wE8jszrD9sZlSOebjioR8dv8z2SeGZVcA3r5U,6833
|
|
138
138
|
tests/otrs_models/test_switchboard_data.py,sha256=1DZq9EyB2Ym-v4WdMfScPejqGerczT6Flc0IfDX4M2M,1170
|
|
@@ -165,7 +165,7 @@ tests/otrs_models/ticket_types/test_change_tariff_mobile_pack.py,sha256=mOitwISC
|
|
|
165
165
|
tests/otrs_models/ticket_types/test_change_tariff_shared_bonds.py,sha256=Mmuai3rMTaBHCmWZCYeDFtx0tH1DiIxwYMUN4pSZFdo,2136
|
|
166
166
|
tests/otrs_models/ticket_types/test_check_coverage.py,sha256=TcgnzNHric-qFBVfhgPVfGjuehCLkZ_PfyJAWxJ9N54,4188
|
|
167
167
|
tests/otrs_models/ticket_types/test_shared_bond.py,sha256=OqfJKmC23ecfI4mbhBeN2UsUJxawPj1lVnVH8i8q65c,3207
|
|
168
|
-
tests/otrs_models/ticket_types/test_we_call_you.py,sha256=
|
|
168
|
+
tests/otrs_models/ticket_types/test_we_call_you.py,sha256=ExR_dgRNUncsS7Sr9BpysFz8eFDhZmOYcAJOT5rVAoM,3936
|
|
169
169
|
tests/responses/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
170
170
|
tests/responses/test_ticket_creation.py,sha256=i7Yzps-Kz25Ie1ylr3YAEsUYDMIZTFOvQIpSM2k7lNY,1068
|
|
171
171
|
tests/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -188,7 +188,7 @@ tests/services/test_update_ticket_with_provider_info.py,sha256=cZUg-hNV4BoMwafbp
|
|
|
188
188
|
tests/user_management_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
189
189
|
tests/user_management_client/test_client.py,sha256=088q9H1yf8Hii7zUF17KULqOO-JCxJLsR7vQ8lGHiqg,4410
|
|
190
190
|
tests/user_management_client/test_user_management_response.py,sha256=HCCG7i2f6-ytrRpTzYZHODKCdW-X5GJn-BMVegd5FXg,1539
|
|
191
|
-
otrs_somconnexio-0.6.
|
|
192
|
-
otrs_somconnexio-0.6.
|
|
193
|
-
otrs_somconnexio-0.6.
|
|
194
|
-
otrs_somconnexio-0.6.
|
|
191
|
+
otrs_somconnexio-0.6.7.dist-info/METADATA,sha256=p2cwmmeJOJr8J82FQpupH4UN4Xg-12gqqPAU641S-xM,3458
|
|
192
|
+
otrs_somconnexio-0.6.7.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
|
|
193
|
+
otrs_somconnexio-0.6.7.dist-info/top_level.txt,sha256=gvMaHGNwusWpSIy-PVyb0CKDIA4-4fXmEVER_2a-OnE,23
|
|
194
|
+
otrs_somconnexio-0.6.7.dist-info/RECORD,,
|
|
@@ -588,7 +588,7 @@ class Router4GDynamicFieldsTestCase(unittest.TestCase):
|
|
|
588
588
|
self.assertEqual(dynamic_fields_dct["TecDelServei"], "4G")
|
|
589
589
|
|
|
590
590
|
def test_sales_team(self):
|
|
591
|
-
self.service_data.sales_team = "
|
|
591
|
+
self.service_data.sales_team = "Sales"
|
|
592
592
|
|
|
593
593
|
dynamic_fields = Router4GDynamicFields(
|
|
594
594
|
self.service_data,
|
|
@@ -598,4 +598,4 @@ class Router4GDynamicFieldsTestCase(unittest.TestCase):
|
|
|
598
598
|
).all()
|
|
599
599
|
|
|
600
600
|
dynamic_fields_dct = dynamic_fields_to_dct(dynamic_fields)
|
|
601
|
-
self.assertEqual(dynamic_fields_dct["equipVendes"], "
|
|
601
|
+
self.assertEqual(dynamic_fields_dct["equipVendes"], "vendes")
|
|
@@ -11,10 +11,12 @@ class TestCaseWeCallYou:
|
|
|
11
11
|
fields_dict = {
|
|
12
12
|
"name": "name surname",
|
|
13
13
|
"schedule": "12h-14h",
|
|
14
|
-
"phone": "
|
|
14
|
+
"phone": "642 525 377",
|
|
15
15
|
"reason": "call me baby",
|
|
16
16
|
"language": "ca_ES",
|
|
17
17
|
"is_company": False,
|
|
18
|
+
"referral": "referral",
|
|
19
|
+
"email": "email.coop",
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
def test_create_CAT(self, mocker):
|
|
@@ -84,8 +86,11 @@ class TestCaseWeCallYou:
|
|
|
84
86
|
),
|
|
85
87
|
mocker.call("personaContacte", dict["name"]),
|
|
86
88
|
mocker.call("horariTrucada", dict["schedule"]),
|
|
87
|
-
mocker.call("telefonContacte",
|
|
89
|
+
mocker.call("telefonContacte", "642525377"),
|
|
88
90
|
mocker.call("motiuTrucada", dict["reason"]),
|
|
91
|
+
mocker.call("referral", dict["referral"]),
|
|
92
|
+
mocker.call("rgpd", "1"),
|
|
93
|
+
mocker.call("nouEmail", dict["email"]),
|
|
89
94
|
]
|
|
90
95
|
if is_company:
|
|
91
96
|
calls.append(mocker.call("midaEmpresa", dict["company_size"]))
|
|
File without changes
|
|
File without changes
|