|
230 | 230 | style="position: static !important; padding: unset !important;"
|
231 | 231 | >
|
232 | 232 | <div
|
233 |
| - t-if="product.qty_overseas != 0 and product.oversea_retail_currency_id != product.company_id.currency_id" |
| 233 | + t-if="(product.qty_overseas != 0 or product.qty_local_supplier_stock != 0) and product.oversea_retail_currency_id != product.company_id.currency_id" |
234 | 234 | >
|
235 | 235 | <span>Retail in <span
|
236 | 236 | t-field="product.oversea_retail_currency_id.name"
|
|
248 | 248 | <div>
|
249 | 249 | <span>HKD Retail:</span>
|
250 | 250 | <t
|
251 |
| - t-if="product.qty_overseas != 0 and product.oversea_retail_currency_id == product.company_id.currency_id and product.price > product.oversea_retail_price" |
| 251 | + t-if="(product.qty_overseas != 0 or product.qty_local_supplier_stock != 0) and product.oversea_retail_currency_id == product.company_id.currency_id and product.list_price > product.oversea_retail_price" |
252 | 252 | >
|
253 | 253 | <t t-if="product.oversea_retail_price != 0">
|
254 | 254 | <span
|
|
260 | 260 | <span style="white-space: nowrap;">N/A</span>
|
261 | 261 | </t>
|
262 | 262 | </t>
|
263 |
| - <t |
264 |
| - t-if="product.qty_overseas == 0 or |
265 |
| - product.qty_overseas != 0 and product.oversea_retail_currency_id != product.company_id.currency_id or |
266 |
| - product.qty_overseas != 0 and product.oversea_retail_currency_id == product.company_id.currency_id and product.price <= product.oversea_retail_price" |
267 |
| - > |
| 263 | + <t t-else=""> |
268 | 264 | <t t-if="product.list_price != 0">
|
269 | 265 | <span
|
270 | 266 | t-esc="'{:,.0f}'.format(product.list_price)"
|
|
433 | 429 | t-att-data-precision="user_id.partner_id.property_product_pricelist.currency_id.rounding"
|
434 | 430 | >
|
435 | 431 | <div
|
436 |
| - t-if="product.qty_overseas != 0 and product.oversea_retail_currency_id != product.company_id.currency_id" |
| 432 | + t-if="(product.qty_overseas != 0 or product.qty_local_supplier_stock != 0) and product.oversea_retail_currency_id != product.company_id.currency_id" |
437 | 433 | >
|
438 | 434 | <span>Retail in <span
|
439 | 435 | t-field="product.oversea_retail_currency_id.name"
|
|
451 | 447 | <div>
|
452 | 448 | <span>HKD Retail:</span>
|
453 | 449 | <t
|
454 |
| - t-if="product.qty_overseas != 0 and product.oversea_retail_currency_id == product.company_id.currency_id and product.price > product.oversea_retail_price" |
| 450 | + t-if="(product.qty_overseas != 0 or product.qty_local_supplier_stock != 0) and product.oversea_retail_currency_id == product.company_id.currency_id and product.list_price > product.oversea_retail_price" |
455 | 451 | >
|
456 | 452 | <t t-if="product.oversea_retail_price != 0">
|
457 | 453 | <span
|
|
463 | 459 | <span style="white-space: nowrap;">N/A</span>
|
464 | 460 | </t>
|
465 | 461 | </t>
|
466 |
| - <t |
467 |
| - t-if="product.qty_overseas == 0 or |
468 |
| - product.qty_overseas != 0 and product.oversea_retail_currency_id != product.company_id.currency_id or |
469 |
| - product.qty_overseas != 0 and product.oversea_retail_currency_id == product.company_id.currency_id and product.price <= product.oversea_retail_price" |
470 |
| - > |
| 462 | + <t t-else=""> |
471 | 463 | <t t-if="product.list_price != 0">
|
472 | 464 | <span
|
473 | 465 | t-esc="'{:,.0f}'.format(product.list_price)"
|
|
771 | 763 | </li>
|
772 | 764 | </xpath>
|
773 | 765 | </template>
|
774 |
| - <template id="pricelist_list" inherit_id="website_sale.pricelist_list" name="Pricelists Dropdown"> |
| 766 | + <template |
| 767 | + id="pricelist_list" |
| 768 | + inherit_id="website_sale.pricelist_list" |
| 769 | + name="Pricelists Dropdown" |
| 770 | + > |
775 | 771 | <xpath expr="//a[@role='button']" position="attributes">
|
776 |
| - <attribute name="class">hidden-xs dropdown-toggle btn btn-secondary</attribute> |
| 772 | + <attribute |
| 773 | + name="class" |
| 774 | + >hidden-xs dropdown-toggle btn btn-secondary</attribute> |
777 | 775 | </xpath>
|
778 | 776 | <xpath expr="//a[@role='button']" position="after">
|
779 |
| - <a role="button" href="#" class="btn btn-sm btn-secondary dropdown-toggle visible-xs-inline" data-toggle="dropdown"> |
| 777 | + <a |
| 778 | + role="button" |
| 779 | + href="#" |
| 780 | + class="btn btn-sm btn-secondary dropdown-toggle visible-xs-inline" |
| 781 | + data-toggle="dropdown" |
| 782 | + > |
780 | 783 | <t t-esc="curr_pl and curr_pl.name or ' - '" />
|
781 | 784 | </a>
|
782 | 785 | </xpath>
|
|
0 commit comments