Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

remove right side quotation date from the quotation order

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
qwebsaletemplatesodoo11.0
5 Odpowiedzi
4079 Widoki
Awatar
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
Awatar
Odrzuć
damourcode@gmail.com
Autor

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

Awatar
Yenthe Van Ginneken (Mainframe Monkey)
Najlepsza odpowiedź

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
Awatar
Odrzuć
Awatar
Mahesh Dave
Najlepsza odpowiedź

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
Awatar
Odrzuć
Yenthe Van Ginneken (Mainframe Monkey)

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

Awatar
damourcode@gmail.com
Autor Najlepsza odpowiedź
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
Awatar
Odrzuć
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

Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Alternate product listing, clone a route?
qweb templates
Awatar
0
mar 15
4417
How to create template for odoo form
form qweb templates
Awatar
0
kwi 25
2313
Custom Invoice Report
invoice qweb templates
Awatar
0
sty 24
2517
Unescaped '<' not allowed in attributes values (qweb) Rozwiązane
qweb templates odoo12
Awatar
Awatar
2
lut 24
16674
Go through a loop n times in QWEB Rozwiązane
qweb templates odoo
Awatar
Awatar
Awatar
Awatar
4
kwi 24
21993
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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