Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

How i can change the attendance app value in payroll app in pay slip odoo16

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
payrollattendanceovertimepayslipsodoo16features
1 Beantwoorden
3273 Weergaven
Avatar
Zahra Naveed

Odoo16 attendance app total work hours are connected to payroll in payslip area


I want to know in which file they are connected so I can change the column value. I want that instead of value of  Work hours from attendance app I want to take the value of  Daily hours column in attendance line in in payroll pay slip and add the line called as overtime where I can take the value of  Extra Hours . daily and extra hours are custom made.

 

 


0
Avatar
Annuleer
Avatar
Savya Sachin
Beste antwoord

Hi,

The work hours is calculated using a compute function defined in the hr_payslip.py file in the hr_payroll module.

this is the function,

@api.depends('worked_days_line_ids.number_of_hours', 'worked_days_line_ids.is_paid')
def _compute_worked_hours(self):
for payslip in self:
payslip.sum_worked_hours = sum([line.number_of_hours for line in payslip.worked_days_line_ids])

You can try applying your logic here using your custom module

Thanks

0
Avatar
Annuleer
Zahra Naveed
Auteur

here it only use all the line which are present in the Worked Days & Inputs to sum them
here i can not work. my main problem is i want to compute salary on the basis of attendance but in attendance there are always two things 1 daily actual working hours 2 over time hours . right now i can compute the salary with the code logic but in that logic i got a problem for example if the employee is present for 21 out of 23 working days and in those working days employee have 25 extra hours
now assume monthly salary of employee is 5000
total working hours in month =23*8 =184
employee worked = 21*8 =168
extra hours =25
monthly wage in hours=5000/184 =27.1739
employee wage for month =168*27.1739 =4,565.2173
employee wage for extra hours =25*27.1739*2= 1,358.6956
total should be paid to employee =4,565.2173 +1,358.6956 =5,923.9129

but my code is doing that it will first minus the from extra hours to complete the
monthly hours target 184 means
total required monthly hours=168+16=184
now remaining extra hours =25-16=9
the the calculation become like this
basic salary=184*27.1739=5000
extra hours salary=9*27.1739*2=489.1302
now total salary =5,489.1302

thats my real problem

Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
i need to make new rules with python code to compute for OVERTIME?
payroll salary_rules payslips odoo16features python3.10
Avatar
Avatar
Avatar
Avatar
3
dec. 24
6111
Employees cannot print their payslips
payroll payslip payslips access rights odoo16features
Avatar
Avatar
1
mei 24
2360
Odoo 10 Overtime and attendance calculation
payroll attendance overtime odoo 10
Avatar
Avatar
Avatar
2
jun. 17
6590
Automatic check-out Opgelost
attendance overtime
Avatar
Avatar
Avatar
2
jul. 25
1385
View for Overtime
attendance overtime
Avatar
0
jan. 25
2469
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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