Deduct Employee Salary Based On Unpaid Leaves || Odoo Community Payroll || Odoo 14 Payroll

Поділитися
Вставка
  • Опубліковано 11 гру 2020
  • #odoo14payroll #odoo13payroll #odoopayroll
    How to deduct employee salary based on leave in Odoo. Manage employee salary and leave salary deduction in odoo community using the Odoo payroll module by Odoo Mates in the odoo store.
    Download the Module:
    1. apps.odoo.com/apps/modules/14...
    2. apps.odoo.com/apps/modules/14...
    Odoo 14 Payroll Management: • Odoo Payroll | How To ...
    Salary Rule Used in Video:
    result=-(contract.wage / worked_days.WORK100.number_of_days) * worked_days.Unpaid.number_of_days
    Website: www.odoomates.tech/
    Email : odoomates@gmail.com
    Facebook: / odoomate
    Twitter: / odoomates
    Support Us in Ko Fi : ko-fi.com/odoomates
  • Наука та технологія

КОМЕНТАРІ • 35

  • @umair9834
    @umair9834 3 роки тому +2

    Great Sir. Please make a video about python code, Range and Child rule in salary rule. Thank you

    • @OdooMates
      @OdooMates  3 роки тому +2

      sure will make a video on the same

  • @mohammedsaleh3288
    @mohammedsaleh3288 3 роки тому +1

    This was Great .. thank you

  • @hasna4219
    @hasna4219 3 роки тому +1

    👍

  • @venkadesh5363
    @venkadesh5363 3 роки тому +2

    How automatically came the work days and unpaid leave while choosing employee name ?
    On my instance it not working sir . Give you advice on that

    • @OdooMates
      @OdooMates  3 роки тому +1

      will this help ? ua-cam.com/video/0kaHMTtn7oY/v-deo.html

    • @GenerousHumanBeing
      @GenerousHumanBeing Рік тому

      @@OdooMates Is this will work on odoo 15CE? I have purchased couple of your apps and all working fine. This one I am stuck with the unpiad leave deduction.

  • @mohammedsaleh3288
    @mohammedsaleh3288 3 роки тому +2

    I used this python code on odoo 12 but it return error when i tried to calculate payslip
    is there is any hint

    • @OdooMates
      @OdooMates  3 роки тому +1

      Is the indentation of added code set correctly ?

    • @mohammedsaleh3288
      @mohammedsaleh3288 3 роки тому

      @@OdooMates Yes , I copied it as it from odoo 14

    • @mohammedsaleh3288
      @mohammedsaleh3288 3 роки тому

      Thank you it works now
      the cod is ok
      The problem was in calculating leave days

  • @venkadesh5363
    @venkadesh5363 3 роки тому +1

    If Employee is not taking leave , and I add unpaid salary rule in salary structure it show error .
    It affect the playslip batches sir.

    • @OdooMates
      @OdooMates  3 роки тому

      can you send more details about how to reproduce it in email: odoomates@gmail.com, so that we can fix it

    • @OdooMates
      @OdooMates  3 роки тому

      @@venkadesh5363 replied

  • @MuhammadFaisal-zl9lj
    @MuhammadFaisal-zl9lj 2 роки тому +1

    What is Payroll Code on Time off configuration.

    • @OdooMates
      @OdooMates  2 роки тому

      this code will be displayed in the payslip if user takes some leaves: github.com/odoomates/odooapps/commit/0cb1c24eb01b40d0ce4879a56554567effecc438

  • @butirpadi
    @butirpadi 3 роки тому +1

    how to get paid leaves day on salary rule...?

    • @OdooMates
      @OdooMates  2 роки тому

      by default there is no variable holding this values, we might have to customize and add it

  • @gunahawk6893
    @gunahawk6893 2 роки тому +1

    if anyone gets this error while giving compute sheet ' bad python code' check you time off type "unpaid - code set as unpaid"

  • @ansumaryjacob6732
    @ansumaryjacob6732 2 роки тому

    number of days getting error while computing
    attribute error

  • @karim.mekhneche
    @karim.mekhneche 2 роки тому +1

    Hello sir. I got an error message ' bad python code'

    • @OdooMates
      @OdooMates  2 роки тому

      is it resolved brother ?

    • @marwanmkhusaibi
      @marwanmkhusaibi 2 роки тому +1

      @@OdooMates can you help please i am facing the same issue

    • @OdooMates
      @OdooMates  2 роки тому

      @@marwanmkhusaibi can you share us the code that you have added

  • @asifdilshad4021
    @asifdilshad4021 2 роки тому +1

    Paste the formula here plz !

    • @OdooMates
      @OdooMates  2 роки тому

      github.com/odoomates/odooapps/blob/15.0/om_hr_payroll/data/hr_payroll_data.xml#:~:text=%3C!%2D%2D%20%20%20%20%20%20%20%20%3Crecord%20id%3D%22hr_rule_unpaid,%3C!%2D%2D%20%20%20%20%20%20%20%20%3C/record%3E%2D%2D%3E

  • @muhammedarifulislam
    @muhammedarifulislam Рік тому +1

    Hi, I get an error "Wrong python code defined for salary rule Unpaid Leave (UNP)." when go to compute sheet of the payslip. I put the python code
    result=-(contract.wage /
    worked_days.WORK100.number_of_days) *
    worked_days.Unpaid.number_of_days
    Has there any solution for this?

    • @farhanassegaf9155
      @farhanassegaf9155 2 місяці тому

      I also have the same error, what is the solution? thank you for the response

  • @ansumaryjacob6732
    @ansumaryjacob6732 2 роки тому

    Wrong python code defined for salary rule Unpaid Leave (UNPAID).
    Error: : "'float' object has no attribute 'number_of_days'" while evaluating
    'result =-(contract.wage/worked_days.WORK100.number_of_days)*worked_days.Unpaid.number_of_days

    '