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

How to Deactivate POS offline mode?

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
odoo8.0
2 Odpowiedzi
6227 Widoki
Awatar
Dan Support

Hi Gurus

Could someone knowledgeable in JavaScript guide me on how to make bolean (check box) to enable or disable Point of sales from operating in offline mode in Odoo 8

Probably like disabling payment validation button if pos connection status is disconnected.

Thank you.

0
Awatar
Odrzuć
Awatar
Dan Support
Autor Najlepsza odpowiedź

Hi Party,

I sincerely appreciate your fast response. Please, where can I do the overidde or how to run the code you gave for the effect to take place?

Thank you again

This module has solved my worries.

https://www.odoo.com/apps/modules/10.0/pos_offline_restrict/

0
Awatar
Odrzuć
Parth Patel (pat)

Hello, You can create a separate module for this, or if you want to edit the existing code you can do it some what here : https://github.com/odoo/odoo/blob/8.0/addons/point_of_sale/static/src/js/screens.js#L1265

Actully my code was targeted the v10/v11 but i guess i should also work with 8.0 with some small changes. Thanks!

OdooBot
Hi Parth,
Thank you a lot.

Am having serious issue with pos receipt here. We made a custom code that make duplicate copies of pos receipt but when sent to thermal printer all the three copies comes on page but break into three sections.

My objective is to cut each page break automatically by the printer.

Thanks again

On Mon, Feb 26, 2018 at 8:27 AM, Parth Patel (pat) <pat@odoo.com> wrote:

Hello, You can create a separate module for this, or if you want to edit the existing code you can do it some what here : https://github.com/odoo/odoo/blob/8.0/addons/point_of_sale/static/src/js/screens.js#L1265

Actully my code was targeted the v10/v11 but i guess i should also work with 8.0 with some small changes. Thanks!



Sent by Tiny ERP Pvt Ltd using Odoo.


OdooBot
Hi Parth,
Thank you a lot.

Am having serious issue with pos receipt here. We made a custom code that make duplicate copies of pos receipt but when sent to thermal printer all the three copies comes on one paper sheet but break into three sections.

My objective is to cut each page break automatically by the printer.

Thanks again

On Mon, Feb 26, 2018 at 9:39 AM, Daniel Attah <netwaytech@gmail.com> wrote:
Hi Parth,
Thank you a lot.

Am having serious issue with pos receipt here. We made a custom code that make duplicate copies of pos receipt but when sent to thermal printer all the three copies comes on page but break into three sections.

My objective is to cut each page break automatically by the printer.

Thanks again

On Mon, Feb 26, 2018 at 8:27 AM, Parth Patel (pat) <pat@odoo.com> wrote:

Hello, You can create a separate module for this, or if you want to edit the existing code you can do it some what here : https://github.com/odoo/odoo/blob/8.0/addons/point_of_sale/static/src/js/screens.js#L1265

Actully my code was targeted the v10/v11 but i guess i should also work with 8.0 with some small changes. Thanks!



Sent by Tiny ERP Pvt Ltd using Odoo.



Parth Patel (pat)

My suggestion would be to try to put this

https://github.com/odoo/odoo/blob/8.0/addons/point_of_sale/static/src/js/screens.js#L1346-L1348

code into loop (no of time you want the receipt).

OdooBot

I hope am not bothering you much.
Please help me with sample on what to do because I don't have knowledge of JavaScript. Thank you for your time.

On Feb 26, 2018 11:16 AM, "Parth Patel (pat)" <pat@odoo.com> wrote:

My suggestion would be to try to put this

https://github.com/odoo/odoo/blob/8.0/addons/point_of_sale/static/src/js/screens.js#L1346-L1348

code into loop (no of time you want the receipt).



Sent by Tiny ERP Pvt Ltd using Odoo.

Awatar
Parth Patel (pat)
Najlepsza odpowiedź

Hello, Daniel John

POS Connection Status got refreshes when the order try to save on server. So, just for the first time, you won't be able to know that the connection is alive or not unless you create the method to check the connection with a server. 

For the immediate second order, you can override the order_validate method and check the connection like this :

var screens = require('point_of_sale.screens');

var PaymentScreen = screens.PaymentScreenWidget.include({

validate_order: function(force_validation) {

        if (this.pos.get('synch').state === 'connected') {

            if (this.order_is_valid(force_validation)) {

    this.finalize_validation();

    }

        } else {

            // Throw Error        

        }

});

And yes, we can active/deactivate this condition with an extra field in POS Config.

Hope this helps you. Cheers!

0
Awatar
Odrzuć
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ść
Problem reading employee hours in the dashboard
odoo8.0
Awatar
0
gru 25
115
{JetBlue^_^REP-Dom}¿Cómo llamar a JetBlue  desde República Dominicana?
odoo8.0
Awatar
0
gru 25
56
whereas I need a new RFQ for each confirmed sales order. I’m currently working with Odoo V18,
odoo8.0
Awatar
0
gru 25
158
how to implement joint piece in odoo 8 in one view
odoo8.0
Awatar
0
kwi 24
2815
what is the reason behind extra move? in stock
odoo8.0
Awatar
Awatar
Awatar
Awatar
4
lis 23
6983
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