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

Odoo 13 CE - when generating payslip batch i got this error

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
13.0413CE
2856 Tampilan
Avatar
libre

Hello, When I want to calculate the payslips in batches, I receive this error message below.


File "C:\Program Files (x86)\Odoo 13.0\server\odoo\fields.py", line 3681, in __get__ raise ValueError("Expected singleton: %s" % record) ValueError: Expected singleton: hr.employee(2356, 2357, 2358, 2359, 2360, 2361, 2362, 2363, 2365, 2364, 2366, 2367, 2369, 2370, 2371, 2368, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2382, 2381, 2432, 2383, 2384, 2388, 2389, 2390, 2385, 2386, 2387, 2391, 2392, 764, 2394, 2433, 2395, 2400, 2401, 2402, 2403, 2404, 2396, 2398, 2397, 2399, 2405, 2406, 2407, 2408, 2410, 2409, 2411, 2412, 2413, 2414, 2415, 2416, 2417, 2418, 2419, 2420, 2421, 2422, 2423, 2424, 2425, 2426, 2427, 2428, 2429, 2430, 2431, 2434)



Can you bring me a solution to this problem?
I use hr_payroll_community from Cybrosys Techno Solutions


Thank you for advance


0
Avatar
Buang
Waleed Mohsen (CorTex IT Solutions)

The latest version for the hr_payroll_community module is 13.0.1.5.3, make sure you have the upgrade your module and give it a try?

GEClick SL

I updated the module, but I still meet the same mistake. Is it possible to give me the directial link to the download of the update 13.0.1.5.3? thank you in advance

 

De : CorTex IT Solutions Ltd <notifications@mail.odoo.com>
Envoyé : lundi 21 février 2022 15:35
À : libre <emac@geclick.gq>
Objet : Re: Odoo 13 CE - when generating payslip batch i got this error

 

View Forum Post

Odoo S.A.


The latest version for the hr_payroll_community module is 13.0.1.5.3, make sure you have the upgrade your module and give it a try?

Sent by Odoo S.A. using Odoo.

libre
Penulis

this is the error :
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\hr_payroll_account_community\wizard\hr_payroll_payslips_by_employees.py", line 12, in compute_sheet return super(HrPayslipEmployees, self.with_context(journal_id=journal_id)).compute_sheet() File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\hr_payroll_community\wizard\hr_payroll_payslips_by_employees.py", line 40, in compute_sheet payslips.compute_sheet() ** File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\dev_hr_loan\models\hr_payslip.py", line 24, in compute_sheet [('employee_id', '=', self.employee_id.id), ('loan_id.state', '=', 'done'), ('is_paid', '=', False),('date','<=',self.date_to)]) File "C:\Program Files (x86)\Odoo 13.0\server\odoo\fields.py", line 3681, in get raise ValueError("Expected singleton: %s" % record) ValueError: Expected singleton: hr.employee(2357, 2432)**

the code of loand it this :
----------------------------loan code ----------------------------------
class hr_payslip(models.Model):
_inherit = 'hr.payslip'

installment_ids = fields.Many2many('installment.line',string='Installment Lines')
installment_amount = fields.Float('Installment Amount',compute='get_installment_amount')
installment_int = fields.Float('Installment Amount',compute='get_installment_amount')

def compute_sheet(self):

installment_ids = self.env['installment.line'].search(
[('employee_id', '=', self.employee_id.id), ('loan_id.state', '=', 'done'), ('is_paid', '=', False),('date','<=',self.date_to)])
if installment_ids:
self.installment_ids = [(6, 0, installment_ids.ids)]
return super(hr_payslip,self).compute_sheet()

---------------------code hr_payroll_ payslip_employee --------------------------
# -*- coding: utf-8 -*-

from odoo import api, fields, models, _
from odoo.exceptions import UserError

class HrPayslipEmployees(models.TransientModel):
_name = 'hr.payslip.employees'
_description = 'Generate payslips for all selected employees'

employee_ids = fields.Many2many('hr.employee', 'hr_employee_group_rel', 'payslip_id', 'employee_id', 'Employees')

def compute_sheet(self):
payslips = self.env['hr.payslip']
[data] = self.read()
active_id = self.env.context.get('active_id')
if active_id:
[run_data] = self.env['hr.payslip.run'].browse(active_id).read(['date_start', 'date_end', 'credit_note'])
from_date = run_data.get('date_start')
to_date = run_data.get('date_end')
if not data['employee_ids']:
raise UserError(_("You must select employee(s) to generate payslip(s)."))
for employee in self.env['hr.employee'].browse(data['employee_ids']):
slip_data = self.env['hr.payslip'].onchange_employee_id(from_date, to_date, employee.id, contract_id=False)
res = {
'employee_id': employee.id,
'name': slip_data['value'].get('name'),
'struct_id': slip_data['value'].get('struct_id'),
'contract_id': slip_data['value'].get('contract_id'),
'payslip_run_id': active_id,
'input_line_ids': [(0, 0, x) for x in slip_data['value'].get('input_line_ids')],
'worked_days_line_ids': [(0, 0, x) for x in slip_data['value'].get('worked_days_line_ids')],
'date_from': from_date,
'date_to': to_date,
'credit_note': run_data.get('credit_note'),
'company_id': employee.company_id.id,
}
payslips += self.env['hr.payslip'].create(res)
payslips.compute_sheet()
return {'type': 'ir.actions.act_window_close'}

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
Odoo 13 CE - payslip rule error
13.04 13CE
Avatar
0
Feb 22
1980
how to fix error in manufacturing
manufacturing 13.04 13 13CE
Avatar
Avatar
1
Mar 21
3041
Records disappearing from odoo 13.
13 13CE
Avatar
0
Jan 22
2231
Updating base for 13CE how to? Diselesaikan
upgrade 13CE
Avatar
Avatar
2
Mei 21
2341
Python update invoice to paid
python 13.04
Avatar
0
Feb 21
3094
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