Skip to Content
Menu
This question has been flagged
2 Replies
1779 Rodiniai

Hi, I created an independent module in odoo 16. In it I have a field that is "price_cost" and it is monetary, for it to work in my model declare currency_id=fields.Many2one('res.currency', string='currency').

In my list view, I have the the currency_idinvisible field and

price_cost options={'currency_field': 'currency_id'}/>  . but in my view when I fill fields I don't get my currency symbol, help.

 

Portretas
Atmesti
Best Answer

Hello Delvis, 

Try this

 field name="amount_total" widget="monetary"/>

Thanks

Portretas
Atmesti
Best Answer

Hi,

Please refer to the below documentation and follow the steps to create monetary fields in odoo

https://www.cybrosys.com/odoo/odoo-books/odoo-15-development/ch3/monetary-fields/


Hope it helps

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
rugp. 25
2761
1
geg. 25
2713
1
bal. 25
3698
1
bal. 25
4561
1
bal. 25
2013