Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Discuss
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

odoo13 how to delete posted invoice completely?

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
4 Replies
15677 Tampilan
Avatar
JC

How can I remove/delete the invoice that was posted with the wrong invoice number in odoo13?

0
Avatar
Buang
Niyas Raphy (Walnut Software Solutions)

Thinking out of the box and making data corrupted is good way that you need to implement in your business ? Nice...

Robilife

I found a solution that works for me.

i set the account move to draft then i create an action server with the python code below 

records.with_context(force_delete=True).unlink()

Muhammad Saeed Sher Khan

Yes, You cannot delete a posted invoice, But you can cancel the invoice which helps to remove the entry from accounts.

Avatar
Vishnu Ramesh
Jawaban Terbai

You cannot delete a posted invoice, But you can cancel the invoice which helps to remove the entry from accounts.

3
Avatar
Buang
Hussein Kadweka Katana

Why is it whn you override the delete method in odoo the action takes too long

Avatar
Hussein Kadweka Katana
Jawaban Terbai

I tried overriding the delete method in odoo but the system takes too long to complete the action...I used the below code 


def delete_from_db(self):
for rec in self:
rec.release_number.with_context(force_delete=True).unlink()
return rec.unlink()
0
Avatar
Buang
Avatar
Do Incredible
Jawaban Terbai

You can install the account_cancel module. It will allow you to configure your journal(s) with the possibility to cancel entries (a new checkbox will be visible on the journal configuration).

Then, you will be able to cancel an invoice (the status will then be "canceled") and as soon as the invoice is canceled you can set it back to draft.

But as soon as an invoice has been confirmed, you won't be able to delete it permanently (the invoice number stays reserved for that invoice)

This is a totally wrong method but if you still want you to have no option then you will go with below option 

1- First install an account_cancel module.


2- Go to file:

https://github.com/odoo/odoo/blob/13.0/addons/account/models/account_move.py#L1596

Note: we recommend create a save to file before.

2- Comment the function unlink like:

def unlink(self):
    for move in self:
        # if move.name != '/' and not self._context.get('force_delete'):
        #    raise UserError(_("You cannot delete an entry which has been posted once."))
        move.line_ids.unlink()
    return super(AccountMove, self).unlink()


3- Go to View and Remove the Invoice.

I hope to help you!

0
Avatar
Buang
Niyas Raphy (Walnut Software Solutions)

How can you recommend this way to comment out and do it, if odoo is blocking the deletion of posted entries it has its own reason, better go with standard solution of cancelling the invoice and then delete. And in v13, there is no module account_cancel, it is part of the account module itself

Do Incredible

Yes @Niyas Raphy Your Are Right we all have to go standard and this is totally wrong let me edit my Ans and Add this is on the ans

JC
Penulis

People that can only follow standard are not thinking out of the box :-P

Avatar
RACHEL NAMWONE
Jawaban Terbai

Hello, I can't seem to find the Account cancel module. What do I need to do? Thanks

0
Avatar
Buang
Ray Carnes (ray)

Niyas commented below "And in v13, there is no module account_cancel, it is part of the account module itself. " You need to set the Invoice to draft first.

Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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