跳至内容
菜单
此问题已终结
2 回复
1098 查看

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.

 

形象
丢弃
最佳答案

Hello Delvis, 

Try this

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

Thanks

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
1
5月 25
1214
1
4月 25
2548
1
4月 25
3273
1
4月 25
910
4
3月 25
5593