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

pos.order not creating, even if i'm getting id's of not existing POS orders.

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
pos.order.linepos.order
4 Odpowiedzi
5490 Widoki
Awatar
Amine Soulaymani

Hello, and thank you for helping.

I'm working on a POS module, creating pos.order objects.

order = {u'pflag': False, u'uid': u'00004-006-0002', u'table_ids': [6], u'creation_date': u'2019-07-19 13:37:30', u'table_data': [{u'reserver_seat': u'6', u'table_id': 6}], u'customer_count': 1, u'table': u'Table6', u'partner_id': 47, u'id': None, u'split_order': None, u'reserved_seat': u'6/6_', u'user_id': 1, u'statement_ids': [], u'floor': u'Main Floor', u'folio_id': 4, u'pos_session_id': 4, u'amount_tax': 0, u'amount_return': 0, u'parcel': False, u'amount_paid': 0, u'phone': False, u'creationDate': u' Table6/6', u'fiscal_position_id': False, u'amount_total': 1.69, u'name': u'Order 00004-006-0002', u'floor_id': 1, u'lines': [[0, 0, {u'mp_skip': False, u'note': u'', u'mp_dirty': True, u'product_id': 48, u'price_unit': 1.69, u'qty': 1, u'pack_lot_ids': [], u'discount': 0, u'order_line_state_id': 1, u'id': 6, u'tax_ids': [[6, False, []]]}]], u'driver_name': False, u'table_id': 6, u'sequence_number': 2}
myorders = self._order_fields(order)
​order_id = self.create(myorders)
_logger.critical(order_id)
Output:
2019-07-19 13:37:36,102 28976 CRITICAL new2 odoo.addons.pos_receipt.models.pos_receipt: pos.order(pos.order(89,),)
The fact is there is no pos.order with ID 89 , not in the pos.order list nor in the database (table: pos_order), so i'm getting errors when i try to add lines to that order:
MissingError: (u'Record does not exist or has been deleted.', None) 
Why i'm getting a reference to a non-existing pos.order ?
i read somewhere that because of some missing mandatory parameters (maybe stripped while passing throught self._order_fields) but i'm getting no errors nor warnings.

PS: sorry for the bad english

0
Awatar
Odrzuć
Manish Bohra

You're facing a problem related to your order id missing in pos order?

OdooBot
Yes, creating an order returns an object with a non valid id, 89,  while valid orders can be shown in web interface and database with id's merely go beyond 20.

I read somewhere this because the returned object is in memory, not attached yet to a database record (like "sticky objects" in Zope/ZODB database). Creating a pos.order with a lot of module inheritance can take a lot of parameters, some missing would prevent the actual creation of an object fully mapped to database.

I'm struggling for days.


Le sam. 20 juil. 2019 à 04:08, Manish Kumar Bohra <mkbohra1994@gmail.com> a écrit :

You're facing a problem related to your order id missing in pos order?

Sent by Odoo S.A. using Odoo.

Manish Bohra

You validate your order I mean payment your invoices?

Awatar
Amine Soulaymani
Autor Najlepsza odpowiedź

No,&nbsp;i&nbsp;did&nbsp;not

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ść
I need to create a field that shows the cost of each product inside pos.order.line, but it should not change the cost if I update the standard_price of the product and then I want to make it visible in the table of pos.order.line Rozwiązane
pos.order.line pos.order
Awatar
Awatar
1
mar 22
2107
How to get orderlins in Pos Odoo 15
pos.order
Awatar
Awatar
Awatar
3
maj 23
3760
Help me please, I need show Payment_method in the view pos_order.tree - ODOO V15
pos.order
Awatar
0
lip 22
1768
How refresh treeview grid
pos.order.line
Awatar
0
mar 15
5271
POS, Extend Order Odoo V10
pos restaurant point_of_sale pos.order.line pos.order
Awatar
0
sie 17
5589
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