Search code examples
pythoncssxmlodooformview

Odoo change width popup


Anybody knows how or where to change the width of a popup form in Odoo. This may apply to all models.

I already found a module to edit the width of a standard form view. But I also want to change the width of a popup form view.


Solution

  • The concerning css class is .modal-lg

    Include a style sheet

    <template id="assets_backend" name="custom_css" inherit_id="web.assets_backend">
        <xpath expr="." position="inside">
             <link rel="stylesheet" href="/your_module_name/static/src/css/your_css_file"/>
        </xpath>
    </template>
    

    with this code

    .modal-lg { width: 80% }