What is the right way to change the text-align property for a column in a tree view.
I have a custom css file in the static/src/css directory.
I also have it registered in the __openerp__.py file in the 'css': [ 'static/src/css/custom_style.css' ].
I also made sure the field in the xml file had the right class name set like class="change_text_align"
For some reason though, it will not change the text-align for the column for the field in the tree view. Is there anything that I am missing? I just want to align the text on the left side of the column instead of the right.
I also tried adding a style attribute to the field like this, but it still didnt work:
<field name="my_field" style="text-align: left" />
texts are aligned at the left side anyway, you have nothing to change. Probably you mean numbers?
Hope this will helps: https://goo.gl/Wz5KEW