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

Problem closing my POS sessions in odoo 16

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
apiclosingbalanceclosingcontrolTPVodoov16
1596 Widoki
Awatar
David

Hello everyone, I need help from the forum.


I have created an import script from odoo 8 to odoo 16, and almost everything works correctly, but there is only one thing that does not work correctly, and that is when closing the POS sessions using the odoo 16 api. I have all the amounts of the orders and payments of these orders rounded and compared with the total to be able to record the same payment without decimal variations and that the totals of orders and payments are the same and this is true, but at the time of closing the session from the api with the "action_pos_session_closing_control" sometimes closes it but other times it does not close it, and I have to manually access odoo and close it, when I do this it shows me a message of "Force session closure" There is a difference between the amounts to be posted and order amounts, is probably due to taxes or changes to accounting settings. This difference is -0.01, which is impossible since I have reviewed all the totals and everything is perfect and not even 1 cent is missing. Is there a way to log out just like I do it manually in Odoo 16, to do it with the API? Still doing forced logout. I have tried all the methods included in the "pos_session.py" class of the odoo 16 core but it is impossible, the session is not closed. And if not, what happens is this due to an odoo 16 error? Since I have seen many people on the forum with this same problem.



I leave you part of my code that I use to close the sessions and that in some the method works and in others it does not, causing the problem of forcing the session to close.

models_target.execute_kw(db_target, uid_target, password_target,    
​​'pos.session', ​
​'action_pos_session_closing_control',
​​[[id_new_pos_session]]
)


This code is the one I try to use when the session does not close because it has an imbalance of -0.01 and it does not work, the session is still in closing control.

models_target.execute_kw(db_target, uid_target, password_target,
​'pos.session', ​
​'action_pos_session_closing_control',
​​[[id_new_pos_session]],
​​{'context': { ​ ​
​ ​'active_model': 'pos.session', ​ ​
​ ​'active_id': id_new_pos_session, ​ ​
​ ​'active_ids': [id_new_pos_session], ​
​ ​​'force_close': True, ​
​ ​​'cash_control': False,
​​}}
)

wizard_id = models_target.execute_kw(db_target, uid_target, password_target, ​
​'pos.close.session.wizard',
​​'create',
​​[{}]
)

models_target.execute_kw(db_target, uid_target, password_target, ​
​'pos.close.session.wizard',
​​'close_session',
​​[[(wizard_id)]],
​​{'context': { ​
​ ​​'active_model': 'pos.session', ​ ​​
​ ​'active_ids': [id_new_pos_session], ​
​}}
)

I hope someone can help me, thank you.

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ść
How do I get Product Prices with json API? Rozwiązane
api
Awatar
Awatar
1
lis 25
3268
Has anyone integrated Helpdesk with Zoom for meeting scheduling?
api
Awatar
Awatar
1
sie 25
1497
Using API check if Odoo is using Odoo sh or on-premises hosting. Rozwiązane
api
Awatar
Awatar
1
sie 25
1946
External API XMLRPC Authentication Keeps Replying with false
api
Awatar
Awatar
Awatar
2
lip 25
4936
API xmlrpc - upload pdf bills to account Rozwiązane
api
Awatar
Awatar
Awatar
3
lip 25
2049
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