Skip to Content
Menu
This question has been flagged
6 Replies
3065 Views

Hello,

In Odoo 16 community, I'm using € currency symbol, at right position.

In kanban and tree views, it's correct (e.g. 1,00 €), but in form, the currency symbol appears at left position (e.g. € 1,00).

In my python code:

currency_id = fields.Many2one(comodel_name='res.currency')

price = fields.Monetary(corrency_field='currency_id')

And in the xml form:

   

       

           

           

       

   


Thanks in advance,

Boris

Avatar
Discard
Best Answer

Hi,

As per shared code, there is a typo in the field definition and this may be the reason. Try correcting the typo and see if it makes any difference.

corrency_field    -->  currency_field


Thanks & Regards

Walnut Software Solutions

Avatar
Discard
Best Answer

I think that there is an issue with position currency, because it doesn't work in sommes basic views like product view, I have the same problem in odoo 17,, so in an example I did:

<group>

    <div style="width:400px">

        <label for="service_providing" string="Préstataire"/>

        <field name="service_providing" class="oe_inline" />DA

    </div>

</group>

Avatar
Discard
Best Answer

These answers not working in odoo v16 on form view. 
After changing this configuration currencies on the tree views are indeed after values but on the form views they are before still.

Avatar
Discard
Best Answer

Any luck with this problem?

I Have the same in R17 (currently i am running upgrade from R14 to R17).

And on product.product form on editable monetary fields the "zł" currency field is on the left. 

On non editable fields (or on tree/canban view) the currency sign is on the right side).


On res.currency i have proper configuration of possition atribute: is set to after.


Avatar
Discard
Author Best Answer

Walnut Software Solutions,

Thanks for your answer. The typo was only in my text here and not in my Odoo code.

Boris Giordanengo


Cybros,

I have tested a new Odoo with setting € at right of the value. In the quotation it's OK but in the product list_price, the € symbol appears at left position.

Boris Giordanengo

Avatar
Discard
Best Answer

Hi, 

Instead of trying to set currency position through code, try using the native functionality of odoo as follows:  

Go to Settings and search for the currencies section and go to currencies, choose your currency from the tree view, and set the symbol position to be before or after the amount.


Hope it helps

Avatar
Discard