Skip to Content
मेन्यू
This question has been flagged
2991 Views

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
Discard

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 Replies Views Activity
2
मार्च 23
2730
2
मार्च 15
8537
3
अप्रैल 25
4705
2
मार्च 24
3096
5
नव॰ 23
43026