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
    • Diskusi
    • 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

How to delete posted journal entries

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
postedentriesjournal_entry
2 Replies
13191 Tampilan
Avatar
Fahmida Yeasmin

I have posted an entry for checking how it is working. But unfortunately, I haven't changed the currency in my country. Now I wanted to change the currency and it says it can't be changed as I already have posted entries. 

Now I wanted to delete that journal entry. So, please suggest.

0
Avatar
Buang
Waleed Ali Mohsen

What Odoo version you are using? If you are using Odoo 15.0 you can reset the journal to draft and delete it. but in Odoo 14 you can't do that.

Fahmida Yeasmin
Penulis

Thanks for your answer. Unfortunately, I am using Odoo 14 version.

Waleed Ali Mohsen

You will not be able to delete them even if you cancelled them you will not be able to change the main currency. You have a lesson learned to not do any test in Live DB.

Odoo Mates

See this method: https://www.youtube.com/watch?v=Avo42KGbkKA&t=43s

Fahmida Yeasmin
Penulis

@Waleed Mohsen thanks for sharing your suggestion for the custom module

Fahmida Yeasmin
Penulis

@Odoo Mates, thanks for your suggestion. It's really worked with my one entry.

But it isn't working with another entry from the expense app, which I have posted for adding with salary to the payroll.

Please suggest any solution for this.

Avatar
Nivas M
Jawaban Terbai

@Fahmida Yeasmin

We can edit the posted Journal Entries using write method with context value.(check_move_validity=False)

First cancel the journal entry.

journal_entry_obj.button_cancel()

And Remove the existing line item one2many data and create new records in one2many table in account.move.line. Look at the below code.

for line in journal_entry_obj.line_ids:
# Deleting the line_ids by passing the conlutext value for skipping the crdit and debit validation.
line.sudo().with_context(check_move_validity=False).unlink()
# Updating one2many table data

data_line_dict = {
"move_id": journal_entry_obj.id,
"account_id": account_id,
"partner_id": partner_id,
"name": name,
"debit": debit,
"credit": credit,
"company_id": journal_entry_obj.company_id.id,
"company_currency_id": journal_entry_obj.company_id.currency_id.id,
"currency_id": journal_entry_obj.currency_id.id,
}
self.env['account.move.line'].sudo().with_context(check_move_validity=False).create(data_line_dict)

and finally call the Reset to Draft and Post button

journal_entry_obj.button_draft()
journal_entry_obj.action_post()

It will work.


0
Avatar
Buang
Avatar
Waleed Ali Mohsen
Jawaban Terbai

In Odoo 14.0 you can't delete them but you can add a customization to override unlink method of account.move model as below, so you can develop a custom module and override unlink method and then install it and delete the journal entries and then uninstall it if you don't need it.


 from odoo import models
class AccountMove(models.Model):
_inherit = "account.move"

def unlink(self):
for move in self:
move.line_ids.unlink()
return models.Model.unlink(self)

0
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

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

Daftar
Post Terkait Replies Tampilan Aktivitas
Best Way To Journal Employee Capital Investment
journal_entry
Avatar
Avatar
Avatar
2
Jul 25
2251
Add Journal Entry
journal_entry
Avatar
0
Jan 24
2313
Journal Entry Error
journal_entry
Avatar
Avatar
1
Nov 23
2523
Multiple journal entries Diselesaikan
journal_entry
Avatar
Avatar
1
Sep 23
3328
How to delete/cancel posted entries?
postedentries
Avatar
0
Mar 15
4807
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