Odoo tree视图标签属性详解
TreeView:列表视图
一般常用的
- create 是否能够创建;
- edit 是否能够编辑;
- delete 是否能够删除;
- default_order create_date desc,按照某个字段排序;
- string 名称;
提示警示颜色不同修改
- decoration-bf 加粗
- decoration-it 斜体
- decoration-danger 危险提示:红色,
- decoration-info 信息提示:蓝色,
- decoration-muted 轻柔提示:灰色,
- decoration-primary 主要提示:紫色,
- decoration-success 成功提示:绿色,
- decoration-warning 警告提示:橙色
编辑
editable=“bottom” 在tree视图底部创建
editable=“top”在tree视图顶部创建