Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

4 decimal places instead of 2 not global

Subscriure's

Get notified when there's activity on this post

This question has been flagged
customizationdecimals
5 Respostes
17998 Vistes
Avatar
gerwin@simbeton.nl

Hello there,

I would like to ask you guys for some additional help. We are encountering a little problem with the decimals. When we sell our products the prices may show 2 decimals so that's correct and should stay that way. 

But when purchase any products from a vendor the prices needs to be filled in with 4 or 5 decimals without using any rounding method. Now if I buy multiple products from our vendor the prices are rounded, I would like to give fill in prices "only within the purchase tab in the product form" with as many decimals as I want. 

We use "for now" the online Odoo version this will soon be the Odoo Estate version. Can I change this with XPath customization or are there some hidden configuration settings for each specific field? 


Additional information:

Relation: product.supplierinfo

Field: seller_ids

Type of field: float

Object: product.template

Update:

I created a new decimal precision (purchase prices) with 4 decimals in the technical settings. Can I just assign that new precision to any field? If yes, how can I do that? 

Thanks already for your help. 

Kinds regards,

Gerwin






2
Avatar
Descartar
Avatar
Sudhir Arya (ERP Harbor Consulting Services)
Best Answer

There is a configuration to increase / decrease the decimal precision. In your case, you need to change the value for "Product Price".

You can find this configuration in "Technical / Database Structure / Decimal Accuracy" and then search for record for "Product Price" and change the value of "Digits" field.

3
Avatar
Descartar
gerwin@simbeton.nl
Autor

Thanks for your support. This I tried already, but then the prices of the products will be in 4 digits also. I only want the vendor purchase price to be 4 digits. Otherwise, the price's that I will sell for won't match. Do you get what I mean? I'm now trying to edit the Xpath in Odoo Studio XML editor and add this: digits="get_precision('Purchase prices')" but that didn't work also :S

Some suggestions?

Sudhir Arya (ERP Harbor Consulting Services)

I think you will need little customization. In the custom module, you will have to overwrite the field and then change the digits as per your need.

gerwin@simbeton.nl
Autor

I got the following fields in the: Odoo Studio: product.template.product.form customization

<tree string="Vendor Information">

<field name="sequence" widget="handle"/>

<field name="name"/>

<field name="product_id" invisible="context.get('product_template_invisible_variant', False)" groups="product.group_product_variant"/>

<field name="product_tmpl_id" string="Product" invisible="context.get('visible_product_tmpl_id', True)"/>

<field name="min_qty"/>

<field name="product_uom" groups="uom.group_uom"/>

<field name="price" target="Price" string="Inkoop prijs" widget="monetary" digits="get_precision('Purchase prices')"/>

<field name="currency_id" groups="base.group_multi_currency"/>

<field name="date_start"/>

<field name="date_end"/>

</tree>

Can I make the little customization in here? Or somewhere else?

Thanks again for your response.

Avatar
Terje Tõnutare
Best Answer

Hey Gerwin! Did you ever solve this issue? If yes, could you share please. 

Thanx

1
Avatar
Descartar
Tim Drinkwater

Not sure which version you are running but this process works in V14:

https://www.odoo.com/forum/help-1/decimal-accuracy-for-a-custom-studio-float-field-168259#answer-168268

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Change decimal places in delivery slips
decimals
Avatar
Avatar
1
de set. 25
1347
module Extention/ Customization
customization
Avatar
Avatar
Avatar
Avatar
Avatar
5
d’ag. 24
4173
How to custom our Odoo LMS page?
customization
Avatar
0
de gen. 22
3247
How to remove the "Create & Edit" on order lines ? Solved
customization
Avatar
1
de març 25
5222
How to use AND conditions in the search bar instead of OR ? Solved
customization
Avatar
1
de set. 21
6877
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now