تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
1787 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
أغسطس 25
2786
1
مايو 25
2749
1
أبريل 25
3718
1
أبريل 25
4580
1
أبريل 25
2028