Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
6 Răspunsuri
3149 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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>

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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.


Imagine profil
Abandonează
Autor Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează