Skip to Content
Menu
This question has been flagged
2 Replies
3310 Views

Hi Everyone,
My Wizard has a lot of blank space left after the fields . Since I gave a button in the footer , It looks ugly because of the lot of blank spaces . This is very important to me so hope someone help me.I will add the screenshot and the code below .

<record id="product_form" model="ir.ui.view">
<field name="name">Product</field>
<field name="model">select.product.custom</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<group>
<field name="product_id" string="Product"/>
</group>
<group>
<field name="quantity"/>
</group>
</group>
<footer>
<button name="add_to_order" string="ADD" type="object"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
</footer>
</sheet>
</form>
</field>
</record>

My wizard


Regards

Avatar
Discard

Remove <sheet></sheet> and check.

Best Answer

Hi,

One of the method is you can remove the <sheet></sheet> from your view.

If you need a customized style for your wizard.You can place the following script inside the <form></form>.You can adjust the width and height according to your wish.

<script>$(document).ready(function(){ $('.modal-dialog').css({'max-width': '497px'});
$('.modal-content').css({'max-height': '46%'});
});
</script>

Regards

Avatar
Discard