n00biex141
(Reeyan Afzal)
August 21, 2023, 8:27am
1
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:
<label name="quantity"/>
<field name="quantity" symbol="unit"/>
Code:
quantity = fields.Float("Quantity", digits='unit', required=True, states=_states)
unit = fields.Function(fields.Many2One('product.uom', "Unit"), 'on_change_with_unit')
pokoli
(Sergi Almacellas Abellana)
August 21, 2023, 8:47am
2
This is a regresion in latest 6.8 series that has been already reported on the issue tracker:
On sao, the currency symbol is not displayed next to the field, otherwise it's displayed at the end of the space for the field, making it difficult to...
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.
1 Like
system
(system)
Closed
August 21, 2023, 8:47pm
3
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.