コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4519 ビュー

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.

アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
3月 25
6253
2
2月 24
8190
0
9月 17
8225
1
8月 15
5395
1
2月 24
33510