Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
1041 Visualizzazioni

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.

 

Avatar
Abbandona
Risposta migliore

Hello Delvis, 

Try this

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

Thanks

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mag 25
1105
1
apr 25
2434
1
apr 25
3118
1
apr 25
790
4
mar 25
5444