Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4494 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 25
6211
2
feb 24
8170
0
set 17
8187
1
ago 15
5367
1
feb 24
33475