202207012116odoo 9 treeview column width setting(寬度設定)
treeview column width setting
在tree view設定class加上my_class
然後在css檔定義如下,min-width是最小的寬度,apply_subject是該欄位的名稱。
.my_class [data-id="apply_subject"] {
width:330px !important;
min-width: 130px !important;
}
treeview的名稱規則如下:
-->To be sure to target only the desired view the name of my class is "myModuleName__myTreeViewName"
reference:
Changing column widths tree view
https://www.odoo.com/zh_TW/forum/bang-zhu-1/changing-column-widths-tree-view-35981
How can I unshrink column headers of one2many tree view in odoo 14?
http://47.112.232.56/a/stackoverflow/en/622f64671c9bb72d713dfa58.html
回應