Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1099 Lượt xem

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.

 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Delvis, 

Try this

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

Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 25
1214
1
thg 4 25
2548
1
thg 4 25
3273
1
thg 4 25
910
4
thg 3 25
5593