Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita 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
  • Proyectos
  • 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 can I add the shipping address to invoice report?

Suscribirse

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

Se marcó esta pregunta
invoicev7reportshipping
2 Respuestas
12325 Vistas
Avatar
Erick Dyck

Hey guys,

i have a problem with adding the shipping/delivery address from the sale_order to the invoice report. I already saw this post (link below) and edited the files as descripted, but it doesn't worked for me. Can someone please help me? I use openERP version 7. Best regards

Dyck

Link: help.openerp.com/question/10304/how-can-i-display-the-delivery-address-on-the-invoice

0
Avatar
Descartar
le_dilem

Hi, have you check in settings/sales/ check Allow a different address for delivery and invoicing.

Erick Dyck
Autor

Yes, this option is checked.

le_dilem

the delivery address is indicated on the order, no use to put in the invoice.

Avatar
kaynis
Mejor respuesta

You can create a module that inherits invoice and add the shipping address field to the invoice this way. After, you can edit the print out from invoice with Open Office report editor to include the field you just added. That should do it

        'deli_add': fields.many2one('res.partner.address', 'Delivery Address', select=True) add this to the columns of python code

and add to the form view of the module you want this field to show just after the invoice address field

        <field name="deli_add" />

this will give you your field and you will be able to select the shipping address but it will not auto fill when you select a client name. This should give you an idea of what you need to do.

0
Avatar
Descartar
kaynis

Remember you have to reload the server when you make changes to .py files and upgrade when you make changes to the xml files for new changes to take effect

Erick Dyck
Autor

Many thanks to you, that looks right :D I will check it tomorrow when I'm at work. Maybe it's the xml file, I forgot them. I will post tomorrow if it works or not.

Avatar
Erick Dyck
Autor Mejor respuesta

I skipped the step to create a module and edited for testing the file addons/account/account_invoice.py. There I added this piece of code:

'partner_shipping_id': fields.many2one('res.partner', 'Delivery Address'),

Then I added following line in the account_print_invoice.rml:

<para style="tableAngebotContent">[[ display_address(o.partner_shipping_id) or 'No delivery address' ]]</para>

Now it's funny. Neither the street of the shipping address nor the text 'No delivery address' are visible. Is the code wrong or did I forgot something? Best regards

Dyck

0
Avatar
Descartar
kaynis

this is a very wrong move because if you mess up a base module the application may not open properly anymore. would advise to build a module with inherited invoice view and add you field there. You have to understand that there is an on_change function on the address in the python code and you need to add the shipping address to be affected by this function. Thus, the on_change function of address in invoice module should also change the shipping address which will also affect the view. This is why it is better to create a module of your own to incorporate all this

Erick Dyck
Autor

I know it's not good to edit base modules. How I already wrote, only for testing. The openERP is installed on a developmentserver, so if it crashes, who cares ;). For me, it's important to know, what is wrong with the code above. When I get it to work, then we do it the "clean way". But thanks for your answer.

kaynis

Ok then. Firstly, I believe you need to make changes to the _view.xml file to make your field visible in a module on webclient. The xml file manages the view. If your field is not declared in the xml then you will not see it eg <field name="name" position="after"> <field name="partner_shipping_id"/></field> or something like that need to be somewhere in the xml form view. That determine where the field is displayed since you said you cannot see your field

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

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

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
[18.0] invoice report looks OK when previewing but fonts scaled up and sections overlap when printed Resuelto
invoice report
Avatar
Avatar
Avatar
2
jun 25
3213
Group Invoice Lines by Sales Order
invoice report
Avatar
Avatar
Avatar
Avatar
Avatar
4
may 24
6896
Display report only in form view?
v7 report
Avatar
Avatar
1
ene 24
5446
Issue with header & footer of the invoice
invoice report
Avatar
Avatar
1
may 23
4679
Invoice report error
invoice report
Avatar
0
jul 17
3678
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • 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 estar 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