Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4448 Zobrazení

I would like to have the millimetres "mm" symbol inside the field exactly like the monetary widget, the only different should be the position of the symbol: the symbol should be on the right.

If I have to implement a new widget, please introduce me how to do it.

Avatar
Zrušit
Nejlepší odpověď

Hey,

to develop a new widget have a look at: https://www.odoo.com/documentation/10.0/reference/javascript.html. Look also at the widget monetory in the 'web' module. 

Besides, you may achieve it simplier: just by using html tags. E.g.:

<div class="oe_inline">

     <field name="some_metric" class="oe_inline"/>

     <field name="some_uom" class="oe_inline"/>

</div>

where 'some_uom' is a char field related to uom_id short name

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 25
6172
2
úno 24
8155
0
zář 17
8154
1
srp 15
5347
1
úno 24
33420