Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

ODOO 14 Community: how can I delete an invoice?

Odebírat

Get notified when there's activity on this post

This question has been flagged
5 Odpovědi
11309 Zobrazení
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
Zrušit
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)
Nejlepší odpověď

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
Zrušit
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
Nejlepší odpověď

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
Zrušit
Avatar
Carlo Dischler
Nejlepší odpověď

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
Zrušit
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
Nejlepší odpověď

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
Zrušit
Avatar
Bx6MbVtUu1uFbjAI5fwE
Nejlepší odpověď

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
Zrušit
Enjoying the discussion? Don't just read, join in!

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

Přihlásit se
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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