[FIX] delivery: free over display change

Before the fix, the display of the boolean was bad.
Now the text is align with the checkbox and the amount related to this if true is on the next line.

closes odoo/odoo#36408

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
Robin Heinz
2019-09-04 09:07:31 +00:00
parent 2ad8d8c964
commit 7c6c76d021
+2 -5
View File
@@ -110,11 +110,8 @@
<div>
<field name="margin" class="oe_inline"/>%
</div>
<div class="o_row o_td_label">
<field name="free_over"/>
<label for="free_over"/>
</div>
<field nolabel="1" name="amount" attrs="{'required':[('free_over','!=', False)], 'invisible':[('free_over','=', False)]}"/>
<field name="free_over"/>
<field name="amount" attrs="{'required':[('free_over','!=', False)], 'invisible':[('free_over','=', False)]}"/>
<field name="product_id" context="{'default_type': 'service', 'default_sale_ok': False, 'default_purchase_ok': False}" />
<field name="company_id" groups="base.group_multi_company"/>
<field name="can_generate_return" invisible="1"/>