Skip to Content
Menu
This question has been flagged
2 Replies
5564 Views
Best Answer

Hello  Bikram Karki,

You can follow below steps for adding custom height and width on sheet:

1)Prepare your custom filename.less file in /custom_app/static/src/css path.  Put this code in your customfilename.less

.o_form_view{ 
    .o_form_sheet_bg .o_form_sheet{
        margin: @padding-base-horizontal;
        max-width: none;
        width: auto;
    }
    .oe_chatter{
        max-width: none;
    }
}

2)Inherit web.assets_backend template in  your custom view/viewfilename.xml

<template id="assets_backend" name="web_sheet_height_width" inherit_id="web.assets_backend"> 
            <xpath expr="." position="inside">
                <link rel="stylesheet" href="/custom_app/static/src/css/customfilename.less"/>
            </xpath>
</template>

3)In  custom_app ‘s __manifest__.py file

“data” : [ “view/viewfilename.xml” ,  ] 


I hope this will help you.

Thanks! 
Avatar
Discard

Hi, i would like to increase the height.

Could you please help me with this.

Best Answer

Hello Bikram Karki,

Please refer this link. I hope this will help you.

https://www.odoo.com/forum/help-1/question/form-sheet-width-7397

Thanks


Avatar
Discard