Reputation: 769
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.
Upvotes: 2
Views: 2193
Reputation: 414
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%
}
Upvotes: 3