[6.1] Payslip lines create accounting entry line only for line appearing on payslip

Bug #1085522 reported by Maxime Chambreuil (http://www.savoirfairelinux.com)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Medium
OpenERP Publisher's Warranty Team

Bug Description

Using latest revisions of 6.1 server, web and addons :

- Install hr_payroll and hr_payroll_account
- create a salary structure with a line not displayed on payslip and having accounting information (like an employer contribution)
- create a contract using the previous structure
- Create an employee payslip for the employee having the previous contract
- Calculate, verify and approve sheet

The accounting entry generated have only lines for payslip lines appearing on payslip. If the payslip line does not appear, there is no accounting entry line:

http://bazaar.launchpad.net/~openerp/openobject-addons/6.1/view/head:/hr_payroll_account/hr_payroll_account.py#L110

It should be something like:

for line in slip.details_by_salary_rule_category:

Tags: 6.1 payroll

Related branches

tags: added: 6.1
tags: added: payroll
Revision history for this message
Hiral Patel (OpenERP) (hip-openerp) wrote :

Hello Maxime,

Thanks for the pointing out this.

Same issue was fixed on trunk ago and landed on 7.0, Would you please check the lp:942373 was fixed on 6 months ago.

But this is the blocking point for stable 6.1 and its major functional issue, So I am confirming this for 6.1 too and assign to OPW team. Also look at the code which seems good.

Thanks again!

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.