Skip to Content
Odoo Meny
  • Sign in
  • Prova gratis
  • Appar
    Finanstjänster
    • Bokföring
    • Fakturering
    • Utgifter
    • Kalkylark (Affärsanalyser)
    • Dokument
    • Underskrifter
    Försäljning
    • CRM
    • Försäljning
    • Kassasystem Butik
    • Kassasystem Restaurang
    • Prenumerationer
    • Uthyrning
    Hemsidor
    • Hemsidesverktyg
    • E-handel
    • Blogg
    • Forum
    • Livechatt
    • Utbildning
    Försörjningskedja
    • Lager
    • Produktion
    • Produktens livscykel (PLM)
    • Inköp
    • Underhåll
    • Kvalitet
    HR
    • Anställda
    • Rekrytering
    • Ledighet
    • Utvärderingar
    • Rekommendationer
    • Fordon
    Marknadsföring
    • Sociala medier
    • E-postmarknadsföring
    • Sms-marknadsföring
    • Evenemang
    • Automatiserad marknadsföring
    • Enkäter
    Tjänster
    • Projekt
    • Tidrapporter
    • Fältservice
    • Kundtjänst
    • Planering
    • Tidsbokningar
    Produktivitet
    • Diskutera
    • Godkännanden
    • IoT
    • VoIP
    • Kunskap
    • WhatsApp
    Community-appar Odoo Studio Odoo Cloud
  • Branscher
    Butiker
    • Bokaffärer
    • Klädbutiker
    • Möbelaffärer
    • Mataffärer
    • Byggvaruhus
    • Leksaksaffärer
    Restaurang & Hotell
    • Barer och pubar
    • Restauranger
    • Snabbmatsställen
    • Gästhus
    • Dryckesdistributörer
    • Hotell
    Fastigheter
    • Fastighetsbyråer
    • Arkitektfirmor
    • Byggfirmor
    • Fastighetsskötare
    • Trädgårdsmästare
    • Fastighetsägare
    Hitta en konsult
    • Redovisningsbyrå
    • Odoo Partner
    • Reklambyråer
    • Advokatbyråer
    • Rekrytering
    • Revisioner och certifieringar
    Produktion
    • Textilproduktion
    • Metallproduktion
    • Möbelproduktion
    • Livsmedelsproduktion
    • Bryggerier
    • Företagsgåvor
    Hälsa & Fitness
    • Sportklubbar
    • Optiker
    • Fitnesscenter
    • Hälsovårdare
    • Apotek
    • Frisörsalonger
    Hantverk
    • Hantverkare
    • IT-utrustning & kundtjänst
    • Solkraftverk
    • Skomakare
    • Städtjänster
    • VVS-tjänster
    Övrigt
    • Ideella föreningar
    • Miljöförvaltningar
    • Uthyrning av reklamtavlor
    • Fotografer
    • Cykeluthyrning
    • Återförsäljare av mjukvara
    Upptäck alla Branscher
  • Community
    Utbildning
    • Instruktionsvideor
    • Dokumentation
    • Certifiering
    • Utbildningar
    • Blogg
    • Podcast
    Lär dig med oss
    • Workshops
    • Företagsspelet Scale Up!
    • Studiebesök hos Odoo
    Mjukvaran
    • Ladda ner
    • Jämför utgåvor
    • Tidigare utgåvor
    Samverkan
    • GitHub
    • Forum
    • Evenemang
    • Översättningar
    • Bli en partner
    • Partnertjänster
    • Registrera din redovisningsbyrå
    Våra tjänster
    • Partners
    • Revisorer
    • Träffa en rådgivare
    • Implementering
    • Kundrecensioner
    • Kundtjänst
    • Uppgraderingar
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Boka en demo
  • Priser
  • Hjälp
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Customize document layout

Subscribe

Get notified when there's activity on this post

This question has been flagged
qwebodoot-field
1 Reply
8667 Views
Avatar
Nikita

When the document is printed, information about the company is displayed in the footer. I want the city and country to be on the same line. What can be done?

https://prnt\.sc/Dca4YaSkSfB8

I've\ highlighted\ in\ bold\ the\ line\ of\ code\ that\ adds\ company\ information\.

Code:





\ \ \ \ \ \ \ \
" rel="ugc">o.env.context.get('lang')">































0
Avatar
Discard
Nikita
Author

I dont know why I cant edit question
Code:
<?xml version="1.0"?>
<t t-name="web.external_layout_clean">
<div t-attf-class="header o_company_#{company.id}_layout" t-att-style="report_header_style">
</div>

<div t-attf-class="article o_report_layout_clean o_company_#{company.id}_layout" t-att-data-oe-model="o and o._name" t-att-data-oe-id="o and o.id" t-att-data-oe-lang="o and o.env.context.get('lang')">
<t t-call="web.address_layout"/>
<t t-raw="0"/>
</div>

<div t-attf-class="footer o_clean_footer o_company_#{company.id}_layout">
<div class="row mt8">
<div class="col-5 text-left">
<span class="company_address" t-field="company.partner_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;], &quot;no_marker&quot;: true}"/>
</div>
</div>
</div>
</t>

Line with company information:
<span class="company_address" t-field="company.partner_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;], &quot;no_marker&quot;: true}"/>

Sudhir Arya (ERP Harbor Consulting Services)

Move the information from footer and add it inside the header.

Nikita
Author

Sudhir Arya,
This doesn't answer my question. I don't need to move the information to header. In this code, I deliberately removed it to make it easier to find the desired line.
I need the city and country to be written on the same line. Look at the screenshot - there they are in different lines, but need on the same line prnt.sc/Dca4YaSkSfB8

Sudhir Arya (ERP Harbor Consulting Services)

I didn't answer your question. I simply just gave a comment on your question because I was not sure that my opinion will help :)

======================================
It can be done as Siddharth said but then you will have to do it in multiple country records in your contacts belong to multiple countries. Otherwise, you can replace the <span class="company_address" and display the address in a single row.

Avatar
Siddharth Tarpada
Best Answer

Hello Nikita,

You can update format of address for specific country by following below steps :

Activate the debug mode

go to the menu Contacts -> Localization -> countries -> select countries and open the form view.

Under the "Advanced Address Formatting":

Modify the field "Layout in reports" and set your address format like below.

%(street)s 
%(street2)s
%(city)s %(state_code)s %(zip)s %(country_name)s


1
Avatar
Discard
Niyas Raphy (Walnut Software Solutions)

Video explanation of the same: https://www.youtube.com/watch?v=91d-wmdIj2U

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

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

Sign up
Related Posts Replies Views Activity
How to get the URL of the PDF report (qweb report)
qweb odoo
Avatar
Avatar
Avatar
2
juli 23
8930
What's the difference between t-esc and t-field in a report ? Solved
qweb t-field
Avatar
Avatar
Avatar
3
juli 23
33291
Header hides body information in qweb report[SOLVED] Solved
qweb odoo
Avatar
Avatar
1
juni 23
5732
How to get the URL of the PDF report (qweb report)
qweb odoo
Avatar
Avatar
1
apr. 23
6501
ValueError: time data 'November 17, 2022 06:03' does not match format '%Y-%m-%d %H:%M:%S
qweb odoo
Avatar
Avatar
1
nov. 22
4898
Community
  • Instruktionsvideor
  • Dokumentation
  • Forum
Öppen källkod
  • Ladda ner
  • GitHub
  • Runbot
  • Översättningar
Tjänster
  • Odoo.sh Hosting
  • Kundtjänst
  • Uppgradera
  • Anpassningsbara modifikationer
  • Utbildning
  • Revisorer
  • Partners
  • Bli en partner
Om oss
  • Vårt företag
  • Varumärkestillgångar
  • Kontakta oss
  • Jobb
  • Evenemang
  • Podcast
  • Blogg
  • Kunder
  • Juridiskt • Integritet
  • Säkerhet
الْعَرَبيّة 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo är ett affärssystem med öppen källkod som täcker alla dina företagsbehov: CRM, e-handel, bokföring, lager, kassasystem, projektledning, och så vidare.

Odoos unika värdeförslag är att samtidigt vara väldigt enkel att använda men också helt integrerad.

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