I am using Odoo 14. I am trying to center justify some of the data in my list view. I was able to get the data to center by adding class="text-center" in the xml but the column headers still remain left justified does anyone know of a way to center the column headers?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
3023
أدوات العرض
To reflect design changes on columns in tree view, you have to add a class into the main tree element and add a CSS file with following css code:
You can add a class into the tree element.
.testing_class table > thead > tr > th { text-align: center; }
For more information you can check this code snippet: https://pastebin.com/y8mzDtjG
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل