[FIX] sale: fix display in form view of sale order line

Div had not impact in quotation view, so I decide to remove it.
But it create an offset in the sale order form view.

Previous commit #2d1db7d fix the form view of quotation lines
but break the form view of sale order line.
https://cloud.githubusercontent.com/assets/10741187/13401517/51989574-df04-11e5-89f0-b3e625d05a7c.png

Related to #11081
This commit is contained in:
Jeremy Kersten
2016-03-01 11:30:02 +01:00
parent 2d1db7dcf7
commit 20ab363a14
+7 -5
View File
@@ -201,12 +201,14 @@
<field name="product_uom" groups="product.group_uom" class="oe_inline oe_no_button"
attrs="{'readonly': [('state', 'in', ('sale','done', 'cancel'))]}"/>
</div>
<label for="qty_delivered" string="Delivered Quantity"
invisible="not context.get('show_sale')"/>
<field name="qty_delivered" invisible="not context.get('show_sale')"
attrs="{'readonly': [('qty_delivered_updateable', '=', False)]}"/>
<label for="qty_delivered" string="Delivered Quantity" invisible="not context.get('show_sale')"/>
<div invisible="not context.get('show_sale')">
<field name="qty_delivered" attrs="{'readonly': [('qty_delivered_updateable', '=', False)]}"/>
</div>
<label for="qty_invoiced" string="Invoiced Quantity" invisible="not context.get('show_sale')"/>
<field name="qty_invoiced" invisible="not context.get('show_sale')"/>
<div invisible="not context.get('show_sale')">
<field name="qty_invoiced" invisible="not context.get('show_sale')"/>
</div>
<field name="price_unit"/>
<label for="discount" groups="sale.group_discount_per_so_line"/>
<div name="discount" groups="sale.group_discount_per_so_line">