2 答案
Hi !
I'm on Odoo13 but i guess it will be the same !
go to website>then on the page where you have the variant list
Costumise theme > HTML CSS JS Editor
On the very left selectot be in XML (HTML) then in the other selector (on the right of this one) select List view of variants
In the code find this lines
Delete them and it should be ok ;)
I didn't test if it works on all pages because my website isn't set up already, still hope it helps !
I wrote a small HTML page for you to see the steps with pictures, just copy paste link adress as this forum will block all my links
http://ninjaaior.free.fr/odoo-badge.html
<t t-if="ptal.attribute_id.display_type == 'select'">
<select t-att-data-attribute_id="ptal.attribute_id.id" t-attf-class="custom-select css_attribute_select js_variant_change #{ptal.attribute_id.create_variant} #{'d-none' if single_and_custom else ''}" t-att-name="'ptal-%s' % ptal.id">
<t t-foreach="ptal.product_template_value_ids._only_active()" t-as="ptav">
<option t-att-value="ptav.id" t-att-data-value_id="ptav.id" t-att-data-value_name="ptav.name" t-att-data-attribute_name="ptav.attribute_id.name" t-att-data-is_custom="ptav.is_custom" t-att-selected="ptav in combination" t-att-data-is_single="single" t-att-data-is_single_and_custom="single_and_custom">
<span t-field="ptav.name"/>
<span t-if="ptav.price_extra" class="badge badge-pill badge-secondary">
<!--
price_extra is displayed as catalog price instead of
price after pricelist because it is impossible to
compute. Indeed, the pricelist rule might depend on the
selected variant, so the price_extra will be different
depending on the selected combination. The price of an
attribute is therefore variable and it's not very
accurate to display it.
-->
<t t-esc="ptav.price_extra > 0 and '+' or '-'"/>
<span t-esc="abs(ptav.price_extra)" class="variant_price_extra" style="white-space: nowrap;" t-options="{ "widget": "monetary", "from_currency": product.currency_id, "display_currency": (pricelist or product).currency_id }"/>
</span>
</option>
</t>
</select>
</t>
I'm looking at it, on your version the span class name is "badge badge-pill badge-light border" and in the selector you can find "Template ID: sale.badge_extra_price" in the "Badge Extra Price".
I just commented the content, then in customize you can activate "List view of variants" option so then you can access it's template in the selector, and comment the <span> here too ;)
I commented on both template by adding <!-- -- > in your HTML so you can have a look and can uncomment it if needed, enjoy :)