Skip to content

Commit

Permalink
[FIX] Bug Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AjmalCybro committed May 6, 2019
1 parent d93886d commit 2c1dafb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion saudi_gosi/README.md
Expand Up @@ -7,7 +7,7 @@ also allows to print the pdf reports of those Contribution registers.

Installation
============
- www.odoo.com/documentation/11.0/setup/install.html
- www.odoo.com/documentation/12.0/setup/install.html
- Install our custom addon

License
Expand Down
2 changes: 1 addition & 1 deletion saudi_gosi/__manifest__.py
@@ -1,6 +1,6 @@
{
'name': "Open HRMS GOSI",
'version': '12.0.1.0.0',
'version': '12.0.2.0.1',
'summary': """GOSI Contribution for Saudi Government""",
'description': """GOSI Contribution for Saudu Government From Employee and Company""",
'category': 'Human Resource',
Expand Down
8 changes: 8 additions & 0 deletions saudi_gosi/doc/RELEASE_NOTES.md
Expand Up @@ -12,3 +12,11 @@
#### Version 12.0.1.0.1
##### FIX
- Salary Structure Issue


## Module <saudi_gosi>

#### 04.05.2019
#### Version 12.0.2.0.1
##### FIX
- Solved issue while creating batch payslips
5 changes: 2 additions & 3 deletions saudi_gosi/models/gosi.py
Expand Up @@ -63,8 +63,7 @@ class Pay(models.Model):
gosi_no = fields.Many2one('gosi.payslip', string='GOSI Reference',readonly=True)

@api.onchange('employee_id')
@api.depends('employee_id')
def onchange_employee_id(self):
def onchange_employee_ref(self):
for rec in self:
gosi_no = rec.env['gosi.payslip'].search([('employee', '=', rec.employee_id.name)])
gosi_no = rec.env['gosi.payslip'].search([('employee', '=', rec.employee_id.id)])
rec.gosi_no=gosi_no.id

0 comments on commit 2c1dafb

Please sign in to comment.