Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Food & Hospitality
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Guest House
    • Distributor nápojů
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Trades
    • Údržbář
    • IT hardware a podpora
    • Solar Energy Systems
    • Výrobce obuvi
    • Úklidové služby
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Services for Partners
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

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

Odebírat

Get notified when there's activity on this post

This question has been flagged
qwebreportsquotationsodoo10
1 Odpovědět
12669 Zobrazení
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
Zrušit
Avatar
Pravitha
Nejlepší odpověď

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
Zrušit
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

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Odoo 10.0 Conditional page break Qweb Vyřešeno
qweb reports qweb-report odoo10
Avatar
Avatar
2
pro 19
9371
How to Change TABLE Format in QWEB reports? With different table Border and Color.? Vyřešeno
qweb reports
Avatar
Avatar
Avatar
Avatar
Avatar
4
led 25
46147
QWEB Report template has inconsistent row heights (see screenshot)
qweb reports
Avatar
0
říj 24
2314
Qweb reports inconsistent table row height
qweb reports
Avatar
0
říj 24
5
[Qweb] foreach, print key and value in website
qweb odoo10
Avatar
Avatar
Avatar
Avatar
3
zář 23
22264
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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