Merge lp:~openerp-dev/openobject-addons/6.1-opw-576855-nep into lp:openobject-addons/6.1

Proposed by Nehal Panchal (OpenERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 6897
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-576855-nep
Merge into: lp:openobject-addons/6.1
Diff against target: 21 lines (+2/-2)
1 file modified
hr_payroll/hr_payroll_demo.xml (+2/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-576855-nep
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Review via email: mp+115718@code.launchpad.net

Description of the change

Hello,

Improved Salary Rule's Python Code and Quantity for payslip computation.

Thanks

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

This bug was qualified as Already Fixed on Trunk (means that it was already fixed and merged in Trunk). If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve

Unmerged revisions

6897. By Nehal Panchal (OpenERP)

[FIX] hr_payroll : Fixed Salary Rule's Python Code and Quantity for payslip computation

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'hr_payroll/hr_payroll_demo.xml'
--- hr_payroll/hr_payroll_demo.xml 2011-12-22 13:35:59 +0000
+++ hr_payroll/hr_payroll_demo.xml 2012-07-19 12:45:59 +0000
@@ -75,7 +75,7 @@
75 <record id="hr_salary_rule_meal_voucher" model="hr.salary.rule">75 <record id="hr_salary_rule_meal_voucher" model="hr.salary.rule">
76 <field name="amount_select">fix</field>76 <field name="amount_select">fix</field>
77 <field eval="10" name="amount_fix"/>77 <field eval="10" name="amount_fix"/>
78 <field name="quantity">worked_days.WORK100.number_of_days</field>78 <field name="quantity">worked_days.WORK100 and worked_days.WORK100.number_of_days</field>
79 <field name="code">MA</field>79 <field name="code">MA</field>
80 <field name="category_id" ref="hr_payroll.ALW"/>80 <field name="category_id" ref="hr_payroll.ALW"/>
81 <field name="register_id" ref="hr_meal_voucher_register"/>81 <field name="register_id" ref="hr_meal_voucher_register"/>
@@ -89,7 +89,7 @@
89 <field name="category_id" ref="hr_payroll.ALW"/>89 <field name="category_id" ref="hr_payroll.ALW"/>
90 <field name="name">Get 1% of sales</field>90 <field name="name">Get 1% of sales</field>
91 <field name="sequence" eval="17"/>91 <field name="sequence" eval="17"/>
92 <field name="amount_python_compute">result = (inputs.SALEURO.amount + inputs.SALASIA.amount) * 0.01</field>92 <field name="amount_python_compute">result = ((inputs.SALEURO and inputs.SALEURO.amount) + (inputs.SALASIA and inputs.SALASIA.amount)) * 0.01</field>
93 </record>93 </record>
9494
95 <!-- Rule Inputs -->95 <!-- Rule Inputs -->