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

How to print order bill and still have the possibility to make payment.

Subscriure's

Get notified when there's activity on this post

This question has been flagged
pos18.0
4 Respostes
2686 Vistes
Avatar
Selorm

Hello,

After adding and printing bill in Odoo POS I'm not able to valide payment anymore. I'm getting the following error:

You cannot edit a payment for a printed order.


I'm using odoo to manage a Bar/restaurant

1
Avatar
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,


This happens because Odoo treats a printed order (bill) as finalized, and blocks further payment edits to prevent inconsistencies.

The validation error is as follows.



If you want to allow payment even after bill is printed, patch the restriction check.

Override or remove this check in a custom module, if your business case allows.


* Warning: Bypassing this check may invalidate fiscal reports or audit trails in regulated regions.


Hope it helps

0
Avatar
Descartar
Avatar
Randall Castro [Vauxoo]
Best Answer

By default in Odoo (including v18.0), once you print the bill (bill printing) in the Bar/Restaurant POS, the system locks the payment workflow for that order. This is by design to prevent discrepancies between what was given to the customer and what was later charged. That’s why you see the error:

You cannot edit a payment for a printed order.

Why does this happen?
  • Odoo treats the bill print as a “final” action.
  • Any change to payments after printing could cause accounting mismatches or disputes.
What are your options?
  1. Use "Print Bill" only for previews (don’t finalize until payment)
    • If you just want to give the customer a preview, use the "Print Bill" button but avoid finalizing any payments until the customer confirms.
  2. Enable the Bar/Restaurant split workflow
    • If you’re in Bar/Restaurant mode, you can split the bill or transfer items between tables without triggering the restriction.
  3. Customizing the logic (not recommended unless you know the impact)
    • Technically, you can remove the validation in:
      • point_of_sale/models/pos_order.py
      • point_of_sale/models/pos_payment.py
    • But this disables a safeguard that Odoo put in place for a reason. If you go this route, you should:
      • Fully test the behavior with invoicing/accounting.
      • Be aware that editing payments after printing can create serious discrepancies.
    Example (as shared above, comment out these lines):

    if order.nb_print > 0 and vals.get('payment_ids'): raise UserError(_('You cannot change the payment of a printed order.')) elif payment.pos_order_id.nb_print > 0: raise ValidationError(_('You cannot edit a payment for a printed order.'))

    Restart Odoo after the change.
Recommended approach

If you really need this behavior changed (e.g., your business process requires printing and still allowing payments), the safest way is to build a small custom module that overrides this restriction cleanly rather than modifying Odoo’s core files.

0
Avatar
Descartar
Avatar
Abdinasir Sadik Muktar
Best Answer

I don't know why on earth is this logic exists but you can do

 

from "addons/point_of_sale/models/pos_order.py"

 

Comment This 2 lines

 

if order.nb_print > 0 and vals.get('payment_ids'):

      raise UserError(_('You cannot change the payment of a printed order.'))

 

 

from "addons/point_of_sale/models/pos_payment.py"

 

Comment This 2 lines

elif payment.pos_order_id.nb_print > 0:

      raise ValidationError(_('You cannot edit a payment for a printed order.'))

 

Save and restart odoo service

 

 

Hope it solves

0
Avatar
Descartar
Avatar
Toftal Technologies
Best Answer

Did you find a solution ?

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
POS Custom Promotion Popup: Confirm button not triggering applyPromotions()
pos 18.0
Avatar
Avatar
1
d’oct. 25
769
Odoo 18: Price tags in Point of Sale (POS) Solved
pos 18.0
Avatar
Avatar
Avatar
Avatar
Avatar
8
de set. 25
6686
How to create a Manufacturing order record from POS order
pos 18.0
Avatar
Avatar
1
de març 25
2348
Point of Sale - When We redeem points, new points are also added
pos loyalty 18.0
Avatar
Avatar
1
d’ag. 25
1002
Change the number of loyalty points used in PoS.
pos loyalty 18.0
Avatar
Avatar
1
de nov. 24
2616
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