[FIX] uom : hard to edit factor

In some screen it is very hard to edit the factor.

closes odoo/odoo#72309

X-original-commit: 2e2e588ec5bc1563312415eda75947d10902f060
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
This commit is contained in:
Florent de Labarre
2021-06-17 15:44:06 +00:00
committed by GitHub
parent 7b0193279a
commit 4a66f8059b
+4 -4
View File
@@ -25,21 +25,21 @@
<field name="uom_type" readonly="1"/>
<label for="factor"
attrs="{'invisible':[('uom_type','!=','smaller')]}"/>
<div attrs="{'invisible':[('uom_type','!=','smaller')]}" class="o_row">
<div attrs="{'invisible':[('uom_type','!=','smaller')]}">
<field name="factor"
digits="[42,5]"
attrs="{'readonly':[('uom_type','=','bigger')]}"/>
<span class="oe_grey">
<span class="oe_grey oe_inline">
e.g: 1*(reference unit)=ratio*(this unit)
</span>
</div>
<label for="factor_inv"
attrs="{'invisible':[('uom_type','!=','bigger')]}"/>
<div attrs="{'invisible':[('uom_type','!=','bigger')]}" class="o_row">
<div attrs="{'invisible':[('uom_type','!=','bigger')]}">
<field name="factor_inv"
digits="[42,5]"
attrs="{'readonly':[('uom_type','!=','bigger')]}"/>
<span class="oe_grey">
<span class="oe_grey oe_inline">
e.g: 1*(this unit)=ratio*(reference unit)
</span>
</div>