Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Producție
    • Textile
    • Metal
    • Furnitures
    • Food
    • 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
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

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

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
pos.order.linepos.order
4 Răspunsuri
5487 Vizualizări
Imagine profil
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
Imagine profil
Abandonează
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?

Imagine profil
Amine Soulaymani
Autor Cel mai bun răspuns

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

0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
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 Rezolvat
pos.order.line pos.order
Imagine profil
Imagine profil
1
mar. 22
2104
How to get orderlins in Pos Odoo 15
pos.order
Imagine profil
Imagine profil
Imagine profil
3
mai 23
3752
Help me please, I need show Payment_method in the view pos_order.tree - ODOO V15
pos.order
Imagine profil
0
iul. 22
1762
How refresh treeview grid
pos.order.line
Imagine profil
0
mar. 15
5264
POS, Extend Order Odoo V10
pos restaurant point_of_sale pos.order.line pos.order
Imagine profil
0
aug. 17
5584
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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