Skip to Content
Menú
This question has been flagged
2966 Vistes

How can I display the currency symbol on a sum in a tree view.

<field
​name="total"
​sum="amount_covered"
​widget='monetary'
​options="{'currency_field': 'currency_id'}"
​/>

That's my code and I want to display the currency symbol, but I can't.

Avatar
Descartar

Hi,

Try like following.

company_id = fields.Many2one('res.company', string='Taxpayer Name',
default=lambda self: self.env.user.company_id)

company_currency = fields.Many2one("res.currency", string='Currency',
related='company_id.currency_id', readonly=True,
tracking=True)

<field name="total"  widget="monetary"


options="{'currency_field': 'company_currency'}" sum="amount_covered"/>


Regards

Related Posts Respostes Vistes Activitat
2
de març 23
2698
2
de març 15
8495
3
d’abr. 25
4619
2
de març 24
3027
5
de nov. 23
42944