Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

ODOO 14 Community: how can I delete an invoice?

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
5 Respuestas
11300 Vistas
Avatar
Joan

Hello, 


INTRODUCTION

You can jump directly to the question if you want...

We are evaluating Odoo 14 as our accounting program as we have an old system that works, but needs a complex architecture (One data server (linux), one license server (windows) and then n client computers).  This old system starts to fail and we are willing to migrate to a newer thing.

I'm a programmer, not an accountant, but I'm in charge of validating the options we are thinking about.

Then, we are thinking on a dockerized Odoo system inside a NAS, which could be accessed from everywhere using a simple web navigator.


THE QUESTION ITSELF:

Our accountant department manager is telling me she can't delete invoices.

Of course this is not a normal practice, but in case of making a mistake she would like to be able to do it.

She is aware she can set the invoice to draft again and then update it, but in case it's the last invoice before closing the year (or any other accounting milestone), she would like to remove it from the system, of course, before being paid...

This should be able to be done in both invoices to customers and from vendors.


How can this be done?


As an example (now I have only 3 invoices in the demo system) 2 in vendors and one in customers.

I have both vendor invoices cancelled and not paid, but even that, I can't remove those invoices from the system.

In the invoice I have in the customers section, it sports a draft status and it's neither paid, but can't be deleted.


In all cases the message that appears is:



User Error

You cannot delete an entry which has been posted once.



Notice I'm trying to do this from the administrator account, so it must not be a privileges issue.


Thank you very much in advance.
1
Avatar
Descartar
Joan
Autor

It works, thanks you very much!


I guess then we should go through the journal items and do the same with the elements that are related to that invoice...


Is that right?  can this be automated?


Thank you very much again.

Sandhya Elizabeth

Hello, i tried doing this but I am unable to delete.

Odoo Mates

See: https://www.youtube.com/watch?v=Avo42KGbkKA

Avatar
Sudhir Arya (ERP Harbor Consulting Services)
Mejor respuesta

Once the invoice is validated/posted, it cannot be deleted. But there is still an option to delete the invoice forcefully.

Follow the following steps:

1) Enable developer mode and click on Edit Action:


2) Add 'force_delete': True in the Context Value field which will allow you to delete the invoice:



8
Avatar
Descartar
Chris TRINGHAM

This seems rather dangerous, as it would allow any invoice to be deleted, overriding the validation in Odoo.

Sudhir Arya (ERP Harbor Consulting Services)

This is just a temporary option to delete the invoice. Of course, it is dangerous if the user deletes the wrong invoice by mistake. So the user will have to be careful before deleting the invoice.

Chris TRINGHAM

In which case it might be better to create a new menu option for Force Delete with only the Administrator authorized to use it.

Avatar
Thoutmos Sanebankh
Mejor respuesta

As    Sudhir Arya  said :

  but  better  to  put True  in  quote:    'force_delete': 'True' 

my old context value:

{'default_move_type': 'out_invoice'  }

my new context value:

{'default_move_type': 'out_invoice' ,  'force_delete': 'True'}

This  worked for  me.


1
Avatar
Descartar
Avatar
Carlo Dischler
Mejor respuesta

I also changed the context value and seems like i had an typo in it.

Now i'm not able to open the accounting module any more. Where can i change this context entry from technical settings menu? Or how can i access the "Edit action" window when not able to open the needed page?

0
Avatar
Descartar
Josep Anton Belchi Riera

You can use the menu (in debug mode) Settings / Technical / Actions / Actions

Carlo Dischler

I can find the action there but I can't find a way how to edit the Context field there. Any idea?

Avatar
SOMEONE
Mejor respuesta

Hello! I did this , and cannot acces invoice view . 

ERROR:

Traceback:
Error: Expected "}", got "(end)"
Please let me know how I can fix this ? 
0
Avatar
Descartar
Avatar
Bx6MbVtUu1uFbjAI5fwE
Mejor respuesta

I experienced the same as Elizabeth Sandhya. Took me a while to figure out what the problem was, therefore maybe for future reference see below.

In step 2 of the answer of Sudhir Arya, there is a discrepancy between the red text and the screenshot itself. Basically there were two options that worked for me: 'force_delete': 'True' (4 quotes) was succesful, and also 'force_delete': True (2 quotes). Not sure which is the official method, but both worked for me.

However the key to making this work for was to go in two steps: First add the "force_delete" stuff and save. Than "leave" the invoice by restarting the accounting menu and open the invoice again. If I skipped this intermediate step, the system would not allow me to fully delete the invoice.

0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Sitio web hecho con

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