Skip to content

Commit

Permalink
[UPDATE] website_default_code: add label SKU and applies styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ElmerGForgeFlow committed Oct 23, 2023
1 parent afcbd6a commit 4d1c4de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.product_default_code {
min-height: 20px;
}
min-height: 25px;
padding-top: 9px;
font-size: .85em;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<odoo>
<template id="products_item" inherit_id="website_sale.products_item">
<xpath expr="//a[@itemprop='name']" position="after">
<p t-attf-class="product_default_code" t-field="product.default_code" />
<p t-attf-class="product_default_code"><span t-if="product.default_code">SKU: <span t-field="product.default_code" /></span></p>
</xpath>
</template>

<template id="product" inherit_id="website_sale.product">
<xpath expr="//h1[@itemprop='name']" position="replace">
<p t-field="product.default_code" />
<span t-if="product.default_code">SKU: <span t-field="product.default_code" /></span>
</xpath>
</template>
</odoo>

0 comments on commit 4d1c4de

Please sign in to comment.