Skip to content

Commit b074e22

Browse files
committed
[FIX] tg_portal: исправили неправильную обработку ввода национальности
1 parent 8db0cf6 commit b074e22

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

tg_portal/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": """Portal modifications for Tribal Gathering""",
3-
"version": "17.0.0.1.2",
3+
"version": "17.0.0.1.3",
44
"author": "IT-Projects LLC, Eugene Molotov",
55
"support": "it@it-projects.info",
66
"website": "https://github.com/it-projects-llc/tg-addons",

tg_portal/static/tests/tours/portal_passport_tour.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ registry.category("web_tour.tours").add("tg_portal.portal_passport_tour", {
3535
"2000-01-01";
3636
},
3737
},
38+
{
39+
content: "Enter Nationality",
40+
trigger: 'select[name="nationality_id"]',
41+
run: () => {
42+
$('select[name="nationality_id"] option:eq(1)').attr("selected", true);
43+
},
44+
},
3845
{
3946
content: "Submit the form",
4047
trigger: "button[type=submit]",

tg_portal/views/portal_templates.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<t t-foreach="countries or []" t-as="country">
9595
<option
9696
t-att-value="country.id"
97-
t-att-selected="country.id == int(country_id) if country_id else country.id == partner.country_id.id"
97+
t-att-selected="country.id == int(nationality_id) if nationality_id else country.id == partner.nationality_id.id"
9898
>
9999
<t t-esc="country.name" />
100100
</option>

0 commit comments

Comments
 (0)