# Incorrect rending of a field (with symbol) in my XML

**URL:** https://discuss.tryton.org/t/incorrect-rending-of-a-field-with-symbol-in-my-xml/6460
**Category:** Developer
**Created:** [August 21, 2023, 8:27am UTC](https://discuss.tryton.org/t/incorrect-rending-of-a-field-with-symbol-in-my-xml/6460 "2023-08-21T08:27:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![n00biex141](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/n00biex141/32/2498_2.png) [@n00biex141](https://discuss.tryton.org/u/n00biex141)
#### Post date: [August 21, 2023, 8:27am UTC](https://discuss.tryton.org/t/incorrect-rending-of-a-field-with-symbol-in-my-xml/6460/1 "2023-08-21T08:27:14Z")

</div>

![1](https://discuss-cdn.tryton.org/uploads/default/original/2X/0/0a62f8594e321168add0654f9d0c73be9388df1d.png)

I’m sending a screenshot of the current representation where the label **Quantity** and the Field Quantity as well because as you can see up there its something like:

10 (with a lot of space between) u

whereas, I want something simple like **Quantity: 10 u** (without any spaces)

XML:

```auto
<label name="quantity"/>
<field name="quantity" symbol="unit"/>

```

Code:

```auto
quantity = fields.Float("Quantity", digits='unit', required=True, states=_states)
unit = fields.Function(fields.Many2One('product.uom', "Unit"), 'on_change_with_unit')

```

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [August 21, 2023, 8:47am UTC](https://discuss.tryton.org/t/incorrect-rending-of-a-field-with-symbol-in-my-xml/6460/2 "2023-08-21T08:47:34Z")

</div>

This is a regresion in latest 6.8 series that has been already reported on the issue tracker:

> **[Char with suffixed symbol are not left align (#12821) · Issues · Tryton /...](https://foss.heptapod.net/tryton/tryton/-/issues/12444)**
>
> This is because the input group has still a width of 100% when the inside input as a limited width.

Normally the symbol should be positioned next to the fields.

Your code is correct, once the issue is fixed in tryton everything should be shown as you expect.

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [August 21, 2023, 8:47pm UTC](https://discuss.tryton.org/t/incorrect-rending-of-a-field-with-symbol-in-my-xml/6460/3 "2023-08-21T20:47:55Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
