Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1678 Widoki

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.

 

Awatar
Odrzuć
Najlepsza odpowiedź

Hello Delvis, 

Try this

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

Thanks

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
sie 25
2509
1
maj 25
2588
1
kwi 25
3554
1
kwi 25
4403
1
kwi 25
1864