| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <odoo> |
| 3 | |
| 4 | <template id="event_booth_registration" inherit_id="website_event_booth.event_booth_registration"> |
| 5 | <xpath expr="//label//span[hasclass('booth_category_price')]" position="replace"> |
| 6 | <t t-if="booth_category.price"> |
| 7 | <t t-if="(booth_category.price - booth_category.price_reduce) > 0"> |
| 8 | <del t-if="website.show_line_subtotals_tax_selection == 'tax_excluded'" |
| 9 | class="text-danger me-1" |
| 10 | t-field="booth_category.price" |
| 11 | t-options="{'widget': 'monetary', 'from_currency': event.company_id.sudo().currency_id, 'display_currency': website.currency_id}"/> |
| 12 | <del t-else="" |
| 13 | class="text-danger me-1" |
| 14 | t-field="booth_category.price_incl" |
| 15 | t-options="{'widget': 'monetary', 'from_currency': event.company_id.sudo().currency_id, 'display_currency': website.currency_id}"/> |
| 16 | </t> |
| 17 | <h5 t-if="website.show_line_subtotals_tax_selection == 'tax_excluded'" |
| 18 | t-field="booth_category.price_reduce" |
| 19 | t-options="{'widget': 'monetary', 'from_currency': event.company_id.sudo().currency_id, 'display_currency': website.currency_id}"/> |
| 20 | <h5 t-else="" |
| 21 | t-field="booth_category.price_reduce_taxinc" |
| 22 | t-options="{'widget': 'monetary', 'from_currency': event.company_id.sudo().currency_id, 'display_currency': website.currency_id}"/> |
| 23 | </t> |
| 24 | <h5 t-else="">Free</h5> |
| 25 | </xpath> |
| 26 | <xpath expr="//input[@name='booth_category_id']" position="attributes"> |
| 27 | <attribute name="t-att-data-price"> |
| 28 | event.company_id.sudo().currency_id._convert( |
| 29 | booth_category.price_reduce_taxinc if website.show_line_subtotals_tax_selection == 'tax_included' else booth_category.price_reduce, |
| 30 | website.currency_id, |
| 31 | event.company_id, |
| 32 | datetime.date.today() |
| 33 | ) or '0' |
| 34 | </attribute> |
| 35 | </xpath> |
| 36 | <xpath expr="//button[hasclass('o_wbooth_registration_submit')]" position="before"> |
| 37 | <div class="o_wbooth_booth_total_price d-none text-end"> |
| 38 | <div class="fw-bold"> |
| 39 | <span>Total</span> |
| 40 | <span t-out="float(0)" |
| 41 | t-options="{'widget': 'monetary', 'from_currency': event.company_id.sudo().currency_id, 'display_currency': website.currency_id}"/> |
| 42 | </div> |
| 43 | </div> |
| 44 | </xpath> |
| 45 | </template> |
| 46 | |
| 47 | <template id="event_booth_order_progress" inherit_id="website_event_booth.event_booth_order_progress"> |
| 48 | <xpath expr="//li[last()]//span" position="replace"> |
| 49 | <t t-if="has_payment_step">Payment</t> |
| 50 | <t t-else="">Confirmed</t> |
| 51 | </xpath> |
| 52 | </template> |
| 53 | |
| 54 | </odoo> |