
Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn
由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解
本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!
开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号
如果您登录系统碰到问题,请在微信公众号留言:
odoo11怎么自定义tree视图的列宽??
-
odoo11怎么自定义tree视图的列宽??
我加了一个csscustom_th th[data-id="name"]{ width:30px; } .custom_th th[data-id="price"]{ width:190px; }
引用这个css之后没有效果。
而且就算有效果,也不合理。我每个字段都要写一个宽度,很费劲。
能不能定义width:30px; } .custom_th th2{ width:190px; }
能不能这样定义的,可以复用的??
-
.custom_th th[data-id="name"]{
width:30px;
}
.custom_th th[data-id="price"]{
width:190px;
}
没用 -
已经解决。修改list_renderer.js 然后写一个css
.myclass
[data-name="user_id"],
[data-name="write_uid"],
[data-name="normal_state"],
[data-name="score"],
[data-name="alternative"]
{
width: 40px;
}