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

Hide the parent Company from quotation & invoicing report

Odebírat

Get notified when there's activity on this post

This question has been flagged
2 Odpovědi
9074 Zobrazení
Avatar
Ahmed Aljeshi

Hello, 


is there a way to modify the quotation and invoicing to hide the parent company?

default view: "Parent Company, Customer Name"

I need it to be something similar to this:  " Customer Name" 

                                                                          " Parent company, shipping address" 


is there a way to do it? 


Thanks.

0
Avatar
Zrušit
Ahmed Aljeshi
Autor

Forgot to mention , I need this modification for the PDF report, the model it self I have no problem, with the design

Avatar
Ray Carnes (ray)
Nejlepší odpověď

This should get you far enough along to make it work.

sale.report_saleorder_document is the report you want to inherit and override for changing the way the Customer (Partner) is shown.


The QWEB directive that prints the Customer information is:

<div t-field="doc.partner_id" 
t-options="{'widget': 'contact', 'fields': ['address', 'name'], 'no_marker': True}"/>


By default Odoo will show Company, Customer with the address - that's how the template for the widget is defined.

There are two changes you will need to make:

1. Remove the name field from the fields key.  This shows the address WITHOUT the name.

<div t-field="doc.partner_id" 
t-options="{'widget': 'contact', 'fields': ['address'], 'no_marker': True}"/>

2. Show the specific name(s) of the Customer.

<div t-field="doc.partner_id.name"/>
<div><span t-field="doc.partner_id.company_name"/>:</div/>

For a final result of:

<div t-field="doc.partner_id.name"/>
<div><span t-field="doc.partner_id.company_name"/>:
<span t-field="doc.partner_id"
t-options="{'widget': 'contact', 'fields': ['address'], 'no_marker': True}"/>


Note that the quote characters have to be escaped - you will see this in the original Odoo XML, with the original QWEB snippet looking like this:

<span t-field="doc.partner_id" 
t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;], &quot;no_marker&quot;: True}"/>


Your finished report would then look like this:



4
Avatar
Zrušit
Yenthe Van Ginneken (Mainframe Monkey)

Great answer Ray!

Ahmed Aljeshi
Autor

Thanks Ray for you detailed answer, I followed your instructions,

as below

[code]

<div class="col-xs-5 col-xs-offset-1">

<div t-field="doc.partner_id.name"/>

<div><span t-field="doc.company_name"/>

<span t-field="doc.partner_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;], &quot;no_marker&quot;: True}"/>

<p t-if="doc.partner_id.vat"><t t-esc="doc.company_id.country_id.vat_label or 'TIN'"/>: <span t-field="doc.partner_id.vat"/></p>

</div>

</div></div>

[/code]

but for some reason I get an error while trying to print the report. your help is appreciated.

Ray Carnes (ray)

doc.partner_id.company_name - not doc.company_name. This was my fault, I've updated my post. Each time you get an error, look at the bottom of the traceback and you will see what the problem is.

Ahmed Aljeshi
Autor

Thanks Ray I really appreciate your help..

,, I'm almost there ,, bear with me plz..

so now the end result came

Client Name

*Company name is missing * :

Address

so I believe something wrong with

<div><span t-field="doc.partner_id.company_name"/>:

Thanks a lot

Ray Carnes (ray)

I just tried again and if the Company Name is blank, it could be because the Customer doesn't belong to a Company (has no parent_id). Is your CLIENT an Individual that shows below the COMPANY when you open the COMPANY Customer record?

Ahmed Aljeshi
Autor

yes,

when I access the company profile from " Contacts Module" I see the client name in the bottom of the Company with the rest of clients under the same company

Ray Carnes (ray)

Can you export the COMPANY and CLIENT records and post the values? Choose these fields: Name, Company Name, Display Name, Address Type, Company Type, Related Company, Parent name, Is a Company, Commercial Entity and Company Name Entity.

Ahmed Aljeshi
Autor

Hello Ray,

please find this picture , contains the details,

https://imgur.com/a/rRA6meW

for some reason, company_name is empty, this is why it doesn't show in the report, although this person is already added under this parent company :/

https://imgur.com/a/rRA6meW

is there a way to fill the company_name from odoo? or I just do it in Excel and re-import them again?

Regards,

Ray Carnes (ray)

Enter both into Odoo via the UI, then export in the same way so you can see which of these fields Odoo expects to have values. Then, make sure your import sheet matches the export.

Ahmed Aljeshi
Autor

Thanks a lot Ray, I'm sure fixing this missing cell ( Company_name) will solve the problem.

sorry for all the hassle :)

I'll do the same steps for invoice too ,, much appreciated !

Ahmed Aljeshi
Autor

Just tried it ! 100% Thanks again Ray!

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
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