[FIX] account: resizing the account name in account.account.form view

Currently, the form view of the account.account has a fixed width for the
account name field which can lead to longer account names to not be readable
as they are not displayed entirely.

This PR allows users to resize the width of the name field to the length
they want without letting them exceed the maximum of the page. This makes
the field keep a shorter width for shorter account names while being able
to be longer for accounts which name is longer.

The account name field has now a width which can be adapted by the user so
he can read both sort and long account names.

task-3441547

closes odoo/odoo#131312

X-original-commit: aa536bbf1cecbdc0ffbc3d44c20ed81afa5565b2
Signed-off-by: Laurent Smet (las) <las@odoo.com>
Signed-off-by: Thomas Becquevort (thbe) <thbe@odoo.com>
This commit is contained in:
Thomas Becquevort (thbe)
2023-08-13 10:57:57 +02:00
parent 95ae5a4c45
commit c025531f06
@@ -42,12 +42,13 @@
<field name="code" placeholder="e.g. 101000" class="oe_inline"/>
</div>
</div>
</div>
<div class="row">
<div class="col col-md-8">
<label for="name" string="Account Name"/>
<div>
<field name="name"
placeholder="e.g. Current Assets"
class="oe_inline"
style="width:80% !important;"/>
</div>
</div>