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
    • e-learning
    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 pub
    • 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
    • Cervecería
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y soporte técnico
    • 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
    Explorar todos los sectores
  • 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
    • Servicios para 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

Odoo 17 PDF quote builder - how to add the dynamic text?

Suscribirse

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

Se marcó esta pregunta
v17
5 Respuestas
4694 Vistas
Avatar
Bhavin Patel

Has anyone figured out yet how and with which software to add the dynamic fields (like Sale Order Number) to the new v17 PDF quotation builder templates. The documentation does not explain this part. I have tried Libre Office to create a PDF form, making sure the name of the fields were corresponding to the ones mentioned in the docs. It sort of worked, but you could only see the auto populated value in the PDF after clicking on the empty field. And the field remains editable.

So how is this supposed to work? What do we need as software additionally to Odoo to build a template that show the fields populated and uneditable?

Edit: Tested a demo quote on demo.odoo.com for the Large Meeting Table. Downloaded the PDF and opened in Acrobat Reader. The Sales Order Number and Customer name only appear when clicking on the empty field. Also not there on the printed version. But if I open the PDF in Chrome browser it looks fine. This seems to be a PDF issue (lots of hits on Google)

So perhaps Libre Office still is a good way to build a quote template using open source software. So I will be testing some more. Also still need to figure out how to prevent the field from being editable after the PDF is generated.

0
Avatar
Descartar
Avatar
Hans Rickhoff 🚀 https://obd.digital
Mejor respuesta


i solved it with using adobe acrobat pro.
You just need to add a field with this button. Give it the correct name from the docs. And configure it with font/size.
As far as I tested, it only works with the 8 fields mentioned in the documentation of odoo. Other "__" notation are not working.

obd.digital

0
Avatar
Descartar
Avatar
Michael Angelo
Mejor respuesta

I’ve developed a module for adding custom fields to the quote builder in Odoo it has a ui and you can search fields to add. If you’re interested in learning more or have any questions, feel free to reach out to me on Discord. My Discord handle is tigor327#1233. Looking forward to connecting!

0
Avatar
Descartar
Frank Tanneberger

Can't reach u in discord. I want to print the company name instaed the name of the contact person. How to do that?

Avatar
Remigiusz Szostek
Mejor respuesta

Hi! Since I'm not using Adobe Acrobat Pro and the trial is only 7 days - Is there any other software that gives you a possibility to add dynamic fields? I'm not a fan of paying €40 per month to have abilities to change one or two documents for customer ;) 

0
Avatar
Descartar
Avatar
André Canilho
Mejor respuesta

There are many open source PDF file builders, like html2pdf or fpdf2 and other similar tools.
If you can build a simple HTML page, you can deffinitely build a PDF with dinamic fields. 

Just pick up one that checks the most boxes for your needs.

-1
Avatar
Descartar
Avatar
Christopher DATO
Mejor respuesta

Hello,
If you want to add custom fields (other than those defined in the docs), you can always update the ' _get_form_fields_mapping' function in the sale_pdf_quote_builder module.

from odoo import models

class IrActionReport(models.Model):
​_inherit = "ir.actions.report"

​def _get_form_fields_mapping(self, order, doc_line_id_mapping=None):
​res = super(IrActionReport, self)._get_form_fields_mapping(order, doc_line_id_mapping)​
​ ​form_fields_mapping = {
​ ​ ​"your_new_field_label": order.your_new_field
​ ​}
​ ​res.update(form_fields_mapping)
​ ​return res




-1
Avatar
Descartar
Frank Tanneberger

Hi Christoph,
THX for that hint. But I can only update the whoole module. Ho to update _get_form_fields_mapping' function?
I want to print the company name instaed the name of the contact person.

Christopher DATO

Hi @Frank Tanneberger,
I've updated my answer.
You will need to add the function in one of your python file with inherit the ir.action.report class.

¿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
Ya es posible hacer Upgrade de v17 a v17.1 ?
v17
Avatar
Avatar
1
oct 25
1432
How to add a new Many2one field in res.config.settings? Resuelto
v17
Avatar
Avatar
Avatar
Avatar
4
oct 25
4038
Add field to ALL models in Odoo
v17
Avatar
Avatar
Avatar
2
sept 25
2623
How to disable Email notification - You have been assigned to Resuelto
v17
Avatar
Avatar
Avatar
Avatar
4
sept 25
8147
Selection Field Options Disappear from Database (PostgreSQL enum) on Module Upgrade
v17
Avatar
0
ago 25
1426
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