Odoo Help

2

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

By
Undan
on 6/29/16, 7:37 AM 446 views

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

0
marwa
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"/>

    </xpath>

 </template>

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.

Register

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)

Stats

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