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
    • Conocimientos
    • 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

Displaying Client's Total Discount on Invoice

Suscribirse

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

Se marcó esta pregunta
invoicediscountOdooStudioodoo16features
2 Respuestas
4349 Vistas
Avatar
Ula

Hello All,

We would like to display the total discount our client is receiving from us. In the invoice summary, only the final price is currently shown. We want it to display the breakdown as follows: Public Price - Discount - Final Price.

I found a Tab in Odoo Studio that I could add in the Sales Order as 'Amount Before Discount' (which is not perfect but could work). However, the issue is that it's only visible to us, not for clients.

How can I change that option?


Thank you for help

0
Avatar
Descartar
EverestX

If you have working solution can you please share with me on Odoo 19 context ?

Avatar
Cybrosys Techno Solutions Pvt.Ltd
Mejor respuesta

Hi,



First, verify the visibility and access rights of the "Amount Before Discount" field (or any field you intend to use for this purpose). In Odoo Studio, check the field's properties to ensure it's visible to the "Portal" group or the "Public" user. If you can't find access rights settings in Odoo Studio, enable developer mode and check the record rules related to the sale.order or account.move models to see if any rules are restricting access to the field.


Next, add the field to the invoice report. The most likely reason your customers can't see the discount is that the field isn't included in the invoice report template. You'll need to customize the report using Odoo Studio's Report Editor. Find a suitable place on the report to add the field, drag and drop it from the "Fields" list, and add labels and formatting to display the discount information clearly. You might need to create a new computed field in the report to calculate the discount amount.


As an alternative, you can modify the report's QWeb code directly, but this requires technical knowledge of QWeb templating. Enable developer mode, find the invoice report, and edit the template view to include the field and calculate the discount amount.


Finally, consider using existing discount fields if available. Odoo might already have fields that store the discount amount or percentage, such as discount or amount_discount on the invoice lines. Check the available fields in Odoo Studio to see if you can use those instead of creating new ones. Remember to test your changes thoroughly and consider creating a custom report that inherits from the standard one for easier upgrades.


Hope it helps



0
Avatar
Descartar
Avatar
Junaid Alam
Mejor respuesta

1- Go to Odoo Studio and navigate to the model for invoices (account.move).

2- Create a new field to store the "Amount Before Discount." This can be done by adding a new field of type monetary to the account.move model.

3- Define a computed value for this new field. This computed value should calculate the difference between the public price and the final price for each line on the invoice.

4- Go to the Studio Report Designer and edit the invoice report template to include your new field. You can use expressions to fetch and display the calculated "Amount Before Discount."

5- By default, newly added fields might not be visible to the external users. Go to Odoo Studio, navigate to the field you've created, and check its visibility settings. Ensure that it is marked as visible for external users or the "Portal" user type if applicable.

6- Confirm that the user role associated with your clients has the necessary permissions to view this field.


0
Avatar
Descartar
Ula
Autor

Thank you for your answer. I have changed the visibility, but we can still only see this in Odoo (including Porta user). However, when I try to print a version of the Sales Order / Invoice, the column disappears.
Is there a solution for that?

Junaid Alam

1- Go to Odoo Studio or the Odoo backend and identify the report template associated with the Sales Order or Invoice. This is often done in the "Settings" or "Technical Settings" section.

2- Once you've identified the report template, edit it using Odoo Studio or by navigating to "Settings" > "Technical" > "Reports."

3- In the report template editor, add the custom field (Amount Before Discount) to the appropriate section of the report where you want it to be displayed.

4- Clear your browser cache or try accessing the printed version in incognito/private mode.

EverestX

Define a computed value for this new field. This computed value should calculate the difference between the public price and the final price for each line on the invoice.

can you show the python code with odoo studio 19

¿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
Add bank account number under company details of a invoice - Odoo 16 Community Edition Resuelto
invoice odoo16features
Avatar
Avatar
1
mar 24
1476
How to place a foreach loop inside a <td> in a QWEB Report Resuelto
invoice odoo16features
Avatar
Avatar
1
jul 23
3536
How to place a foreach loop inside a <td> in a QWEB Report
invoice odoo16features
Avatar
0
jul 23
25
How to display total discount in invoice and sales orders ?
invoice fields discount sales.order odoo16features
Avatar
Avatar
1
may 23
4177
I can't delete a model v16
OdooStudio odoo16features
Avatar
0
may 23
2318
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