Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

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

Odoberať

Get notified when there's activity on this post

This question has been flagged
pos.order.linepos.order
4 Replies
5513 Zobrazenia
Avatar
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
Avatar
Zrušiť
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?

Avatar
Amine Soulaymani
Autor Best Answer

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

0
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrácia
Related Posts Replies Zobrazenia Aktivita
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 Solved
pos.order.line pos.order
Avatar
Avatar
1
mar 22
2126
How to get orderlins in Pos Odoo 15
pos.order
Avatar
Avatar
Avatar
3
máj 23
3776
Help me please, I need show Payment_method in the view pos_order.tree - ODOO V15
pos.order
Avatar
0
júl 22
1790
How refresh treeview grid
pos.order.line
Avatar
0
mar 15
5294
POS, Extend Order Odoo V10
pos restaurant point_of_sale pos.order.line pos.order
Avatar
0
aug 17
5603
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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