Eskaera shop cards now display the standard website_sale ribbon (variant_ribbon_id or website_ribbon_id, e.g. "Novedad") in addition to the dynamic stock ribbon. Stock ribbons move to the right so they coexist with user-defined ribbons (which default to the left). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
23 lines
958 B
XML
23 lines
958 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright 2026 Criptomart -->
|
|
<!-- License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) -->
|
|
<odoo>
|
|
<data noupdate="0">
|
|
<!-- Ribbon: Out of Stock -->
|
|
<!-- position=right so it doesn't collide with user-defined ribbons (e.g. Novedad), which default to left -->
|
|
<record id="out_of_stock_ribbon" model="product.ribbon">
|
|
<field name="name">Out of Stock</field>
|
|
<field name="position">right</field>
|
|
<field name="text_color">#FFFFFF</field>
|
|
<field name="bg_color">#d9534f</field>
|
|
</record>
|
|
|
|
<!-- Ribbon: Low Stock -->
|
|
<record id="low_stock_ribbon" model="product.ribbon">
|
|
<field name="name">Low Stock</field>
|
|
<field name="position">right</field>
|
|
<field name="text_color">#FFFFFF</field>
|
|
<field name="bg_color">#ffc107</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|