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í
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • 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
    • Služby pro partnery
    • 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

remove right side quotation date from the quotation order

Odebírat

Get notified when there's activity on this post

This question has been flagged
qwebsaletemplatesodoo11.0
5 Odpovědi
4075 Zobrazení
Avatar
damourcode@gmail.com

Guys,

I would like to remove the Quotation date and Salesperson which is located right side but I can't find where their reference ids.

Where should I get references, I can't find it in report_saleorder_document 

see image https://imgur.com/hUA0yMw


0
Avatar
Zrušit
damourcode@gmail.com
Autor

still, all solution can't work, please any help

Avatar
Yenthe Van Ginneken (Mainframe Monkey)
Nejlepší odpověď

Hi,

You can actually find these two elements in the report_saleorder_document. You can find the quotation date here and the salesperson here. As they both don't have a really unique identifier it might be easier (and safer) to do an xpath on the above element and just recreate the rest of the content. For example:

<xpath expr="//div[id='informations']" position="replace">
  <div class="row mt32 mb32" id="informations">
    <div t-if="doc.client_order_ref" class="col-auto mw-100 mb-2">
      <strong>Your Reference:</strong>
      <p class="m-0" t-field="doc.client_order_ref"/>
    </div>
    <div t-if="doc.date_order and doc.state not in ['draft','sent']" class="col-auto mw-100 mb-2">
      <strong>Order Date:</strong>
      <p class="m-0" t-field="doc.date_order"/>
    </div>
    <div t-if="doc.validity_date and doc.state in ['draft', 'sent']" class="col-auto mw-100 mb-2" name="expiration_date">
      <strong>Expiration:</strong>
      <p class="m-0" t-field="doc.validity_date"/>
    </div>
  </div>
</xpath>

Regards,
Yenthe

3
Avatar
Zrušit
Avatar
Mahesh Dave
Nejlepší odpověď

Hi,

You just need to inherit "report_saleorder_document" in your custom module xml file for remove "Quotation date and Salesperson". You have to select Quotation date and Salesperson using reference.

  • <odoo>
    <data>
    <template id="report_saleorder_document_customized" inherit_id="sale.report_saleorder_document">
              <!-- Hide Quotation date and Salesperson -->
              <!--<xpath expr="//p[@t-field='doc.date_order']" position="replace"/>
                <xpath expr="//p[@t-field='doc.user_id']" position="replace"/>-->
            
                <xpath expr="//div[@class='col-auto mw-100 mb-2'][4]" position="replace"/>
                <xpath expr="//div[@class='col-auto mw-100 mb-2'][3]" position="replace"/>
    </template>
      </data>
    </odoo>

Thanks

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

Way riskier to do [index] in xpath expressions that to remove a bigger part and rebuild.

Avatar
damourcode@gmail.com
Autor Nejlepší odpověď
Hi @Yenthe,

These codes work well for bellow inline Quotation date and Salesperson fields, what I meant those display above one the right side with the same level of customer information.

see images https://imgur.com/hUA0yMw


<xpath expr="//div[@id='informations']" position="replace">
 <div class="row mt32 mb32" id="informations">
 <div t-if="doc.client_order_ref" class="col-auto mw-100 mb-2">                        
<strong>Your Reference:</strong>
 <p class="m-0" t-field="doc.client_order_ref"/>
 </div>                        
<div t-if="doc.date_order and doc.state not in ['draft','sent']" class="col-auto mw-100 mb-2"> 
 <strong>Order Date:</strong>                        
<p class="m-0" t-field="doc.date_order"/>                        
</div>                        
<div t-if="doc.validity_date and doc.state in ['draft', 'sent']" 
class="col-auto mw-100 mb-2" name="expiration_date">                        
<strong>Expiration:</strong>                        
<p class="m-0" t-field="doc.validity_date"/>                        
</div>                    
</div>                
</xpath> 
Thanks
0
Avatar
Zrušit
Sudhir Arya (ERP Harbor Consulting Services)

There is something you should try by your self from the given example and if you face issue, just post your code and the issue. We will sure try to help you.

damourcode@gmail.com
Autor

Hi Sudhir,

I already used these code but I don't get the correct one to remove these fields thanks

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
Alternate product listing, clone a route?
qweb templates
Avatar
0
bře 15
4417
How to create template for odoo form
form qweb templates
Avatar
0
dub 25
2313
Custom Invoice Report
invoice qweb templates
Avatar
0
led 24
2516
Unescaped '<' not allowed in attributes values (qweb) Vyřešeno
qweb templates odoo12
Avatar
Avatar
2
úno 24
16671
Go through a loop n times in QWEB Vyřešeno
qweb templates odoo
Avatar
Avatar
Avatar
Avatar
4
dub 24
21989
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