[FIX] stock: nested statinfo values

Inside a statinfo context, the widget statinfo should not be used
(cause useless DOM depth + misalignements). Just change to integer
values.
This commit is contained in:
qsm-odoo
2015-09-30 10:11:54 +02:00
parent c2f0e915fe
commit ccd50b7ecd
+2 -3
View File
@@ -281,10 +281,9 @@
attrs="{'invisible':[('type', '!=', 'product')]}"
class="oe_stat_button" icon="fa-building-o">
<div class="o_form_field o_stat_info">
<span class="o_stat_value"><field name="virtual_available" widget="statinfo" nolabel="1"/>
<span class="o_stat_value"><field name="virtual_available" widget="integer"/>
<span attrs="{'invisible':[('outgoing_qty', '=', 0),('incoming_qty','=',0)]}" groups="base.group_no_one">
(-<field name="outgoing_qty" widget="statinfo" nolabel="1"/>
+<field name="incoming_qty" widget="statinfo" nolabel="1"/>)
(-<field name="outgoing_qty" widget="integer"/>+<field name="incoming_qty" widget="integer"/>)
</span>
</span>
<span class="o_stat_text">Forecasted</span>