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

How to format Amount Paid on customer invoices

Suscribirse

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

Se marcó esta pregunta
qwebinvoicescurrencyformatting
4 Respuestas
9614 Vistas
Avatar
Iming Chan

Dear all,

I'm new to Odoo 8 and Qweb, so I'm looking for help to get my customer invoice report right.

On this report, there is an "Amount Paid" field:

<td><strong>Amount Paid</strong></td>

<td class="text-right">AUD$

<span t-raw="o.amount_total - o.residual"/>

When I print the report (in PDF), it shows detail as "AUD$13.5" instead of "AUD$13.50" (with 2 decimal places to be consistant with rest of this report).  On the screen, it does show with two (2) decimal places (which is consistant with Australian currency practice).

Can anyone help to get this corrected?

Thank you again for your help in advance.  Much appreciated.

Kind regards,

Iming

1
Avatar
Descartar
Avatar
Virali
Mejor respuesta

Hii Iming Chan ,

May be this will help you. put this code instead yours.

<span t-raw="formatLang(o.amount_total - o.residual or 0, digits=2)"/> 

1
Avatar
Descartar
Avatar
Yannick Yaskos
Mejor respuesta

please i also have problem to interpred this code in my qweb report i new in  odoo v8 and i try to custum my quotation report


<tr class="border-black">

<td><strong>Total</strong></td>

<td class="text-right">

<span t-field="o.amount_total" t-field-options="{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}"/>

</td>

</tr>

 

0
Avatar
Descartar
Matjaz

This isn't hard to understand: -

; new row with black border - Total; new column with bold text "Total" - ; another column with text right oriented - ; in upper cell that has text right oriented value of database column amount_total that is 'monetary' formated (with thousand and decimal characters and currency symbol at the end)
Avatar
Matjaz
Mejor respuesta

Hello,

I have the same problem in Odoo8 Qweb reporting.

Decimal Accuracy is set and it's working nicely if number in Qweb is defined as "t-field".

If you need to calculate or call function you need to do it with "t-esc" function and in that case number is not formatted correctly. As I saw, you can use "formalLang" but you have to wrap old RML parser with Qweb one as in "report_payslip".

But isn't this nonsense. We are throving away RML reporting in behalf of Qweb and now wrapping it again? What will happen in Odoo 9, will this solution work also (as I know there will be no support for RML)?

What can be done? Call a function and format a number on 'python' side ???


Thanks for any information or solution,

Matjaž

0
Avatar
Descartar
Avatar
Juan Muñoz
Mejor respuesta

Hi Iming,

In order to change the digits you must go to Settings/Technical/Database Structure/Decimal Accuracy and here can change all the fields digits.

In order to change the decimal or thousand separator, you must go to Settings/Translations/Languages, select your language and change the values.

Hope this will help you!

Regards, 

Juan.

0
Avatar
Descartar
¿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
How to style product description output in sale.order report template?
qweb formatting template
Avatar
Avatar
1
mar 21
4249
How to display the shipping address in my invoice report - Odoo 12 Community version
qweb invoices shipping
Avatar
0
ene 20
4317
Change the number format in Odoo 8
currency formatting number
Avatar
Avatar
Avatar
5
nov 16
11966
Issue with Currency Display in Odoo QWeb Report (Odoo 17)
qweb currency reports odoo17
Avatar
Avatar
Avatar
2
nov 25
2505
Qweb foreign currency printing problem Resuelto
qweb currency ecommerce website_sale
Avatar
Avatar
Avatar
3
oct 25
5535
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