Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Información
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

4 decimal places instead of 2 not global

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
customizationdecimals
5 Respuestas
17974 Vistas
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)
Mejor respuesta

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
Mejor respuesta

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

¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Change decimal places in delivery slips
decimals
Avatar
Avatar
1
sept 25
1325
module Extention/ Customization
customization
Avatar
Avatar
Avatar
Avatar
Avatar
5
ago 24
4103
How to custom our Odoo LMS page?
customization
Avatar
0
ene 22
3201
How to remove the "Create & Edit" on order lines ? Resuelto
customization
Avatar
1
mar 25
5189
How to use AND conditions in the search bar instead of OR ? Resuelto
customization
Avatar
1
sept 21
6864
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

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