Skip to content
Extraits de code Groupes Projets
Valider 6ba7487b rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[UPD] inherit website_sale_stock_available_display to show special message on cart lines

parent f880f8c0
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -14,6 +14,7 @@
'portal',
'website',
'website_sale',
'website_sale_stock_available_display',
],
'contributors': [
'Benjamin Rivier <benjamin@le-filament.com>',
......@@ -21,6 +22,7 @@
'website': 'http://www.le-filament.com',
'data': [
'template/layout_template.xml',
'template/stock_availability_template.xml',
'views/res_config.xml',
],
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherit parent -->
<template id="assets_frontend_3a" inherit_id="website_sale_stock_available_display.stock_info" name="3A Cart stock infos">
<xpath expr="//div" position="replace">
<t t-if="virtual_available > 0">
<div t-attf-class="availability_messages text-#{virtual_available and 'success' or 'danger'}">
<span><t t-esc="virtual_available"/> <t t-esc="line.product_uom.name"/> in stock</span>
</div>
</t>
<t t-else="">
<div class="text-success">
Disponible fournisseur
</div>
</t>
</xpath>
</template>
</odoo>
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter