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

Odoo10 Qweb how to add title and new line in contact address?

Suscribirse

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

Se marcó esta pregunta
qwebreportsquotationsodoo10
1 Responder
12687 Vistas
Avatar
wizardz

hello,

In this code how can I add the partner_id.title and make the partner_id.name on a new line?

<div class="col-xs-5 col-xs-offset-1">
   <div t-field="doc.partner_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>
</div>


This looks now so:

COMPANY, NAME
STREET
ZIP CITY
COUNTRY

 

But it should look like this:

COMPANY
TITLE NAME
STREET
ZIP CITY
COUNTRY


The space above when you only have a company name is the problem. 


Can anyone help me ? I mean in a lot of countries there needs to be the name on a new line.

Thank you









0
Avatar
Descartar
Avatar
Pravitha
Mejor respuesta

Try this code, maybe it can help you:

<tr>
    <td><strong> Recipient:</strong></td>
    <td>
	<t t-if="o.partner_id.company_type == 'person'">
	    <span t-field="o.partner_id.parent_id"/>
	</t>
	<t t-if="o.partner_id.company_type == 'company'">
            <span t-field="o.partner_id.name"/>
	</t>
</td> <td></td> </tr>  <tr> <td></td> <td> <t t-if="o.partner_id.company_type == 'person'"> <span t-field="o.partner_id.title"/>. <span t-field="o.partner_id.name"/> </t> <t t-if="o.partner_id.company_type == 'company'">  <span t-field="o.partner_id" t-options='{"widget": "contact", "fields": ["address", "phone", "fax"], "no_marker": True}'/> </t>
</td>   <td></td> </tr> <tr> <td></td> <td> <t t-if="o.partner_id.company_type == 'person'"> <span t-field="o.partner_id" t-options='{"widget": "contact", "fields": ["address", "phone", "fax"], "no_marker": True}'/> </t> </td> <td></td> </tr>
0
Avatar
Descartar
wizardz
Autor

the title and name of the partner_id is on the same line as company name.

How can I break line after company name?

wizardz
Autor

it's impossible to split the customer name to a new line ???

Pravitha

did you try the above code? I tested that and post it to you. Its working fine the way you require

Pravitha

If you have noticed I have removed the field: " name" from the

<td><span t-field="o.partner_id" t-options='{"widget": "contact", "fields": ["address", "phone", "fax"], "no_marker": True}'/></td> line. The "name" field is the one which shows company name,partner name.

wizardz
Autor

yes but the problem with that code is that when you only have a company, there is new space above. It should stay on the same line . When you print only a company without a contact there is a new blank space above the line.

Pravitha

yes , that is true, let me check

Pravitha

can you try the updated code.

wizardz
Autor

I added a <br/> in this line: <t t-if="doc.partner_id.company_type == 'person'"><br/>

and now its working fine, thank you very much

Pravitha

Welcome

¿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
Odoo 10.0 Conditional page break Qweb Resuelto
qweb reports qweb-report odoo10
Avatar
Avatar
2
dic 19
9379
How to Change TABLE Format in QWEB reports? With different table Border and Color.? Resuelto
qweb reports
Avatar
Avatar
Avatar
Avatar
Avatar
4
ene 25
46165
QWEB Report template has inconsistent row heights (see screenshot)
qweb reports
Avatar
0
oct 24
2332
Qweb reports inconsistent table row height
qweb reports
Avatar
0
oct 24
5
[Qweb] foreach, print key and value in website
qweb odoo10
Avatar
Avatar
Avatar
Avatar
3
sept 23
22273
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