odoo - Change button to red
问题描述
In form view of sale order, I have a button
<button name="action_confirm" states="sent" string="Confirm Sale" class="btn-primary" type="object" context="{'show_sale': True}"/>
and it's showing in blue color. if I change to oe_highlight nothing changes or any other class. How can I change this button to RED color?
解决方案
You can try this :
class="btn-danger"
推荐阅读
- javascript - 解析 Json 数据(来自 Azure)
- javascript - SQL 行转换为字符串格式(字符串化为文件读取格式)
- java - Android Studio 和我的设备中的分辨率相同,但外观不同
- python - 计数连续空白和分数分析。熊猫
- ffmpeg - 在这种情况下,ffmpeg 的正确命令行格式是什么
- flyway - 生产系统中的 Flyway 更改版本控制
- qt - QT Quick QML 应用程序支持多种显示尺寸
- openpyxl - 使用python循环遍历excel工作表以获取范围
- r - 使用 dplyr 根据 R 中不同事件之间的条件和日期差异删除行
- python - 使用数据计数和拆分索引导出数据帧