Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5971 Lượt xem

 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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! 
Ảnh đại diện
Huỷ bỏ

Hi, i would like to increase the height.

Could you please help me with this.

Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ