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

How to print invoice from POS? - Odoo 8

Odebírat

Get notified when there's activity on this post

This question has been flagged
invoiceposprinting
1 Odpovědět
6693 Zobrazení
Avatar
Alejandro Perez Cosio

Hello,

I would want to print invoices the same way that receipts are being printed (don't save, just push on invoice and print).
Is it possible?

Thank you in advance.

Regards
Alejandro

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

You'll need to extend the logic from the backbone.js. look at the JavaScript files under /point_of_sale/static/src/js/ and look at models.js and screens.js. What you want is a rather big task to extend though!

Alejandro Perez Cosio
Autor

Hello Yenthe, thank you for your comment! I was checking those files and found this: screens.js > line 1333 > this.pos.proxy.print_receipt(...). I think this is a good start, but I'm not sure now how to call the invoice report instead of the receipt one..

Avatar
Manuel Palacios
Nejlepší odpověď

Hello Alejandro (and everyone), Here is a possible solution for odoo v13 community edition:

1. Extend the PosModel (javascript) defined in point_of_sale/static/src/js/models.js, and override the push_and_invoice_order to save the order_server_id into the order object:

models.PosModel = models.PosModel.extend({

push_and_invoice_order: function (order) {

// other operations

transfer.then(function(order_server_id){

// next line is important!

order.server_id = order_server_id;

// generate the pdf and download it

if (order_server_id.length && !order.is_to_email()) {

//next operations

}

});


2. Patch the ReceiptScreenWidget, defined in point_of_sale/static/src/js/screens.js and override print function to make an server request of the pos invoice report with order server ids, saved when validating the order:

screens.ReceiptScreenWidget.include({

print: function() {

var order = this.pos.get_order();

// check the server_id lenth, server_id is an array

if (order.server_id.length) {

// print the invoice report with server ids saved

this.chrome.do_action('point_of_sale.pos_invoice_report',{additional_context:{ active_ids:order.server_id, }});

}

},

});


3. Extend the ReceipScreenWidet template defined in point_of_sale/static/src/xml/pos.xml to change button's label:

t-inherit='point_of_sale.ReceiptScreenWidget'

t-inherit-mode='extension'>

Print Invoice




Hope it helps someone.

Regards.

0
Avatar
Zrušit
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
Invoices check by default on POS ? Vyřešeno
invoice pos
Avatar
Avatar
Avatar
3
čvc 25
1935
Single Invoice for Multiple POS Orders??? Vyřešeno
invoice pos
Avatar
Avatar
Avatar
2
bře 25
2912
Create and print invoice from POS
invoice pos
Avatar
Avatar
1
čvc 23
5163
POS Payment via invoice (ODOO 13)
invoice pos
Avatar
Avatar
1
bře 21
2565
POS Invoice print not showing Thai language character in odoo 10
invoice pos
Avatar
0
zář 18
3466
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