|
3 | 3 | <!-- /shop/address route --> |
4 | 4 | <template id="address_inherit" inherit_id="website_sale.address" priority="110"> |
5 | 5 | <!-- Hide the B2B section (VAT, Company, etc.) --> |
6 | | - <xpath expr="//t[@t-if='website._display_partner_b2b_fields()']" position="replace"/> |
| 6 | + <xpath |
| 7 | + expr="//t[@t-if='website._display_partner_b2b_fields()']" |
| 8 | + position="replace" |
| 9 | + /> |
7 | 10 | <!-- Show the type wise fields --> |
8 | 11 | <xpath |
9 | 12 | expr="//form[hasclass('checkout_autoformat')]/div/div[1]" |
|
65 | 68 | </div> |
66 | 69 | <!-- Company Section --> |
67 | 70 | <!-- <t t-if="website._display_partner_b2b_fields()"> --> |
68 | | - <div class="w-100"/> |
69 | | - <!-- <t t-if="show_vat"> --> |
70 | | - <t t-set="vat_warning" t-value="partner_sudo.vat and not can_edit_vat"/> |
71 | | - <div id="company_name_div" class="col-lg-6 mb-2 d-none"> |
72 | | - <label |
73 | | - class="col-form-label fw-normal label-optional" |
74 | | - for="o_company_name" |
75 | | - > |
76 | | - Company Name |
77 | | - </label> |
78 | | - <input |
79 | | - id="o_company_name" |
80 | | - type="text" |
81 | | - name="company_name" |
82 | | - t-att-value="partner_sudo.commercial_company_name" |
83 | | - t-att-readonly="'1' if vat_warning else None" |
84 | | - class="form-control" |
85 | | - /> |
86 | | - <small t-if="vat_warning" class="form-text text-muted d-block d-lg-none"> |
87 | | - Changing company name is not allowed once document(s) have been issued for your account. Please contact us directly for this operation. |
88 | | - </small> |
89 | | - </div> |
90 | | - <div id="div_vat" class="col-lg-6 mb-2 d-none"> |
91 | | - <label class="col-form-label fw-normal label-optional" for="o_vat"> |
92 | | - TIN / VAT |
93 | | - </label> |
94 | | - <input |
95 | | - type="text" |
96 | | - id="o_vat" |
97 | | - name="vat" |
98 | | - t-att-value="partner_sudo.vat" |
99 | | - t-att-readonly="'1' if vat_warning else None" |
100 | | - class="form-control" |
101 | | - /> |
102 | | - <small t-if="vat_warning" class="form-text text-muted d-block d-lg-none"> |
103 | | - Changing VAT number is not allowed once document(s) have been issued for your account. Please contact us directly for this operation. |
104 | | - </small> |
105 | | - </div> |
106 | | - <div t-if="vat_warning" class="col-12 d-none d-lg-block mb-1"> |
107 | | - <small class="form-text text-muted"> |
108 | | - Changing company name or VAT number is not allowed once document(s) have been issued for your account. Please contact us directly for this operation. |
109 | | - </small> |
110 | | - </div> |
111 | | - <!-- </t> --> |
| 71 | + <div class="w-100" /> |
| 72 | + <!-- <t t-if="show_vat"> --> |
| 73 | + <t t-set="vat_warning" t-value="partner_sudo.vat and not can_edit_vat" /> |
| 74 | + <div id="company_name_div" class="col-lg-6 mb-2 d-none"> |
| 75 | + <label |
| 76 | + class="col-form-label fw-normal label-optional" |
| 77 | + for="o_company_name" |
| 78 | + > |
| 79 | + Company Name |
| 80 | + </label> |
| 81 | + <input |
| 82 | + id="o_company_name" |
| 83 | + type="text" |
| 84 | + name="company_name" |
| 85 | + t-att-value="partner_sudo.commercial_company_name" |
| 86 | + t-att-readonly="'1' if vat_warning else None" |
| 87 | + class="form-control" |
| 88 | + /> |
| 89 | + <small |
| 90 | + t-if="vat_warning" |
| 91 | + class="form-text text-muted d-block d-lg-none" |
| 92 | + > |
| 93 | + Changing company name is not allowed once document(s) have been issued for your account. Please contact us directly for this operation. |
| 94 | + </small> |
| 95 | + </div> |
| 96 | + <div id="div_vat" class="col-lg-6 mb-2 d-none"> |
| 97 | + <label class="col-form-label fw-normal label-optional" for="o_vat"> |
| 98 | + TIN / VAT |
| 99 | + </label> |
| 100 | + <input |
| 101 | + type="text" |
| 102 | + id="o_vat" |
| 103 | + name="vat" |
| 104 | + t-att-value="partner_sudo.vat" |
| 105 | + t-att-readonly="'1' if vat_warning else None" |
| 106 | + class="form-control" |
| 107 | + /> |
| 108 | + <small |
| 109 | + t-if="vat_warning" |
| 110 | + class="form-text text-muted d-block d-lg-none" |
| 111 | + > |
| 112 | + Changing VAT number is not allowed once document(s) have been issued for your account. Please contact us directly for this operation. |
| 113 | + </small> |
| 114 | + </div> |
| 115 | + <div t-if="vat_warning" class="col-12 d-none d-lg-block mb-1"> |
| 116 | + <small class="form-text text-muted"> |
| 117 | + Changing company name or VAT number is not allowed once document(s) have been issued for your account. Please contact us directly for this operation. |
| 118 | + </small> |
| 119 | + </div> |
| 120 | + <!-- </t> --> |
112 | 121 | <!-- </t> --> |
113 | 122 | </xpath> |
114 | 123 | </template> |
|
0 commit comments