Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

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

Subscriure's

Get notified when there's activity on this post

This question has been flagged
pos.order.linepos.order
4 Respostes
5512 Vistes
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
Descartar
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
Descartar
Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
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
de març 22
2126
How to get orderlins in Pos Odoo 15
pos.order
Avatar
Avatar
Avatar
3
de maig 23
3776
Help me please, I need show Payment_method in the view pos_order.tree - ODOO V15
pos.order
Avatar
0
de jul. 22
1790
How refresh treeview grid
pos.order.line
Avatar
0
de març 15
5294
POS, Extend Order Odoo V10
pos restaurant point_of_sale pos.order.line pos.order
Avatar
0
d’ag. 17
5603
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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