[IMP]l10n_in_hr_payroll: gives bank account number of concerned person
bzr revid: dsi@tinyerp.com-20120710054811-j3xqxakm5jsod9ng
This commit is contained in:
parent
a5bfe8212a
commit
221013aab1
|
@ -18,7 +18,7 @@
|
|||
<page string="Miscellaneous" groups="base.group_hr_user">
|
||||
<group colspan="2" col="2">
|
||||
<separator string="Personal Info" colspan="2"/>
|
||||
<field name="bank_account_id" context="{'display_partner':True, 'partner_id':partner_id}"/>
|
||||
<field name="bank_account_id"/>
|
||||
<field name="place_of_birth"/>
|
||||
<field name="children"/>
|
||||
<!-- <field name="basic" invisible="0"/> -->
|
||||
|
|
|
@ -105,7 +105,7 @@ class payroll_advice(osv.osv):
|
|||
'''
|
||||
Bank Advice
|
||||
'''
|
||||
|
||||
|
||||
_name = 'hr.payroll.advice'
|
||||
_description = 'Bank Advice'
|
||||
_columns = {
|
||||
|
@ -208,13 +208,21 @@ class payroll_advice(osv.osv):
|
|||
return {
|
||||
'value':res
|
||||
}
|
||||
|
||||
|
||||
payroll_advice()
|
||||
|
||||
class payroll_advice_line(osv.osv):
|
||||
'''
|
||||
Bank Advice Lines
|
||||
'''
|
||||
'''
|
||||
def get_account_number(self, cr, uid, ids, employee_id=False, context=None):
|
||||
res = {}
|
||||
if employee_id:
|
||||
hr_obj = self.pool.get('hr.employee').browse(cr, uid, employee_id, context=context)
|
||||
acc_number = hr_obj.bank_account_id.acc_number
|
||||
res.update({'name': acc_number})
|
||||
return {'value': res}
|
||||
|
||||
_name = 'hr.payroll.advice.line'
|
||||
_description = 'Bank Advice Lines'
|
||||
_columns = {
|
||||
|
@ -226,7 +234,7 @@ class payroll_advice_line(osv.osv):
|
|||
'company_id': fields.related('advice_id', 'company_id', type='many2one', required=False, relation='res.company', string='Company', store=True),
|
||||
}
|
||||
_defaults = {
|
||||
'debit_credit': 'c',
|
||||
'debit_credit': 'C',
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
<page string="Payment Lines">
|
||||
<field name="line_ids" colspan="4" nolabel="1">
|
||||
<tree string="Payment Lines" editable="bottom">
|
||||
<field name="employee_id"/>
|
||||
<field name="employee_id" on_change="get_account_number(employee_id)"/>
|
||||
<field name="name"/>
|
||||
<field name="bysal"/>
|
||||
<field name="debit_credit"/>
|
||||
|
|
|
@ -70,7 +70,6 @@ class payroll_advice_report(report_sxw.rml_parse):
|
|||
'name': l.employee_id.name,
|
||||
'acc_no': l.name,
|
||||
'bysal': l.bysal,
|
||||
'debit_credit': l.debit_credit,
|
||||
})
|
||||
self.total_bysal += l.bysal
|
||||
result.append(res)
|
||||
|
|
Loading…
Reference in New Issue