addons-cm/website_sale_aplicoop/data/product_ribbon_data.xml
GitHub Copilot c8e0461120 [IMP] website_sale_aplicoop: render user-defined website_sale ribbon alongside stock ribbon
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>
2026-05-29 18:11:47 +02:00

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>