Odoo Help


How to left align the integer fields in one2many tree view?

on 6/29/16, 7:37 AM 633 views

For example in sale order , the price field, quantity fields etc ... are right aligned . How can i  change it to left?.

On 7/14/17, 4:15 AM

It worked with me in odoo 10:

just create CSS File :styletree.css :

.o_list_number {

    text-align: left !important;

    white-space: nowrap;


<template id="custom_assets_backend" name="custom bar assets" inherit_id="web.assets_backend">

  <xpath expr="." position="inside">

   <link rel="stylesheet" href="/your_model/static/src/less/styletree.css"/>



About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/29/16, 7:37 AM
Seen: 633 times
Last updated: 7/14/17, 4:15 AM