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

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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>

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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.


Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć