Skip to content

Commit a19a157

Browse files
[IMP] Implemented code to pass CI tests
1 parent 41a6851 commit a19a157

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

ecommerce_first_last_name/controllers/main.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ def _validate_address_values(
1818
):
1919
"""Raise validation save time"""
2020
invalid_fields, missing_fields, error_messages = (
21-
super()._validate_address_values(address_values, partner_sudo, address_type, use_delivery_as_billing, required_fields, is_main_address, **kwargs)
22-
)
21+
super()._validate_address_values(
22+
address_values, partner_sudo, address_type, use_delivery_as_billing,
23+
required_fields, is_main_address, **kwargs
24+
)
25+
)
2326
# Change first or last name
2427
if partner_sudo and not partner_sudo._can_edit_name():
2528
full_name = partner_sudo.name or ""

ecommerce_first_last_name/static/src/js/website_sale.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ websiteSaleAddress.include({
3636
companyInput.required = isCompany;
3737
if (!isCompany) {
3838
companyInput.required = false;
39-
CompanyInput.value = ""; // clear if switching back to individual
4039
}
4140
}
4241
},

ecommerce_first_last_name/views/templates.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@
8686
t-att-readonly="'1' if vat_warning else None"
8787
class="form-control"
8888
/>
89-
<small t-if="vat_warning" class="form-text text-muted d-block d-lg-none">
89+
<small
90+
t-if="vat_warning"
91+
class="form-text text-muted d-block d-lg-none"
92+
>
9093
Changing company name is not allowed once document(s) have been issued for your account. Please contact us directly for this operation.
9194
</small>
9295
</div>
@@ -102,7 +105,10 @@
102105
t-att-readonly="'1' if vat_warning else None"
103106
class="form-control"
104107
/>
105-
<small t-if="vat_warning" class="form-text text-muted d-block d-lg-none">
108+
<small
109+
t-if="vat_warning"
110+
class="form-text text-muted d-block d-lg-none"
111+
>
106112
Changing VAT number is not allowed once document(s) have been issued for your account. Please contact us directly for this operation.
107113
</small>
108114
</div>

0 commit comments

Comments
 (0)