Skip to content
Snippets Groups Projects
Commit 049b0f7f authored by Fabien Pinckaers's avatar Fabien Pinckaers
Browse files

[IMP] Better product form view, stat button

parent c3ed1b94
Branches
Tags
No related merge requests found
......@@ -218,8 +218,11 @@
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"/>
(-<field name="outgoing_qty" widget="statinfo" nolabel="1"/>
+<field name="incoming_qty" widget="statinfo" nolabel="1"/>)</span>
<span attrs="{'invisible':[('outgoing_qty', '=', 0),('incoming_qty','=',0)]}">
(-<field name="outgoing_qty" widget="statinfo" nolabel="1"/>
+<field name="incoming_qty" widget="statinfo" nolabel="1"/>)
</span>
</span>
<span class="o_stat_text">Forecasted</span>
</div>
</button>
......@@ -279,8 +282,11 @@
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"/>
(-<field name="outgoing_qty" widget="statinfo" nolabel="1"/>
+<field name="incoming_qty" widget="statinfo" nolabel="1"/>)</span>
<span attrs="{'invisible':[('outgoing_qty', '=', 0),('incoming_qty','=',0)]}">
(-<field name="outgoing_qty" widget="statinfo" nolabel="1"/>
+<field name="incoming_qty" widget="statinfo" nolabel="1"/>)
</span>
</span>
<span class="o_stat_text">Forecasted</span>
</div>
</button>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment