Help

2

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

Avatar
Undan

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

Avatar
Discard
1 Answer
0
Avatar
Maroua ROMDHANE
Best Answer

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>

Avatar
Discard