[FIX] website_sale: compute base price from default company currency to user currency to display the good lst_price or price extra
This commit is contained in:
parent
2a10745d60
commit
b0ae5eac57
|
@ -87,7 +87,7 @@
|
||||||
<t t-if="(compute_currency(product.lst_price) - product.price) > 0.1">
|
<t t-if="(compute_currency(product.lst_price) - product.price) > 0.1">
|
||||||
<del class="text-danger" style="white-space: nowrap;" t-field="product.lst_price" t-field-options='{
|
<del class="text-danger" style="white-space: nowrap;" t-field="product.lst_price" t-field-options='{
|
||||||
"widget": "monetary",
|
"widget": "monetary",
|
||||||
"from_currency": "website.currency_id",
|
"from_currency": "product.company_id.currency_id",
|
||||||
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
|
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
|
||||||
}'/>&nbsp;
|
}'/>&nbsp;
|
||||||
</t>
|
</t>
|
||||||
|
@ -432,7 +432,7 @@
|
||||||
t-field="product.lst_price"
|
t-field="product.lst_price"
|
||||||
t-field-options='{
|
t-field-options='{
|
||||||
"widget": "monetary",
|
"widget": "monetary",
|
||||||
"from_currency": "website.currency_id",
|
"from_currency": "product.company_id.currency_id",
|
||||||
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
|
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
|
||||||
}'/>
|
}'/>
|
||||||
<b class="oe_price" style="white-space: nowrap;"
|
<b class="oe_price" style="white-space: nowrap;"
|
||||||
|
@ -465,7 +465,7 @@
|
||||||
<span class="badge" t-if="variant_id.price_extra">
|
<span class="badge" t-if="variant_id.price_extra">
|
||||||
<t t-esc="variant_id.price_extra > 0 and '+' or ''"/><span t-field="variant_id.price_extra" style="white-space: nowrap;" t-field-options='{
|
<t t-esc="variant_id.price_extra > 0 and '+' or ''"/><span t-field="variant_id.price_extra" style="white-space: nowrap;" t-field-options='{
|
||||||
"widget": "monetary",
|
"widget": "monetary",
|
||||||
"from_currency": "website.currency_id",
|
"from_currency": "product.company_id.currency_id",
|
||||||
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
|
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
|
||||||
}'/>
|
}'/>
|
||||||
</span>
|
</span>
|
||||||
|
@ -490,7 +490,7 @@
|
||||||
<span t-if="value_id.price_extra">
|
<span t-if="value_id.price_extra">
|
||||||
<t t-esc="value_id.price_extra > 0 and '+' or ''"/><span t-field="value_id.price_extra" style="white-space: nowrap;" t-field-options='{
|
<t t-esc="value_id.price_extra > 0 and '+' or ''"/><span t-field="value_id.price_extra" style="white-space: nowrap;" t-field-options='{
|
||||||
"widget": "monetary",
|
"widget": "monetary",
|
||||||
"from_currency": "website.currency_id",
|
"from_currency": "product.company_id.currency_id",
|
||||||
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
|
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
|
||||||
}'/>
|
}'/>
|
||||||
</span>
|
</span>
|
||||||
|
@ -510,7 +510,7 @@
|
||||||
<span class="badge" t-if="value_id.price_extra">
|
<span class="badge" t-if="value_id.price_extra">
|
||||||
<t t-esc="value_id.price_extra > 0 and '+' or ''"/><span t-field="value_id.price_extra" style="white-space: nowrap;" t-field-options='{
|
<t t-esc="value_id.price_extra > 0 and '+' or ''"/><span t-field="value_id.price_extra" style="white-space: nowrap;" t-field-options='{
|
||||||
"widget": "monetary",
|
"widget": "monetary",
|
||||||
"from_currency": "website.currency_id",
|
"from_currency": "product.company_id.currency_id",
|
||||||
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
|
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
|
||||||
}'/>
|
}'/>
|
||||||
</span>
|
</span>
|
||||||
|
@ -687,7 +687,7 @@
|
||||||
<del class="text-danger" style="white-space: nowrap;"
|
<del class="text-danger" style="white-space: nowrap;"
|
||||||
t-field="line.price_unit" t-field-options='{
|
t-field="line.price_unit" t-field-options='{
|
||||||
"widget": "monetary",
|
"widget": "monetary",
|
||||||
"from_currency": "website.currency_id",
|
"from_currency": "line.company_id.currency_id",
|
||||||
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
|
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
|
||||||
}'/>&nbsp;
|
}'/>&nbsp;
|
||||||
</t>
|
</t>
|
||||||
|
@ -781,7 +781,7 @@
|
||||||
<del class="text-danger" style="white-space: nowrap;"
|
<del class="text-danger" style="white-space: nowrap;"
|
||||||
t-field="product.lst_price" t-field-options='{
|
t-field="product.lst_price" t-field-options='{
|
||||||
"widget": "monetary",
|
"widget": "monetary",
|
||||||
"from_currency": "website.currency_id",
|
"from_currency": "product.company_id.currency_id",
|
||||||
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
|
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
|
||||||
}'/>&nbsp;
|
}'/>&nbsp;
|
||||||
</t>
|
</t>
|
||||||
|
|
Loading…
Reference in New Issue