Browse Source

[UDT] Index Updated and Issue Fixed

pull/78/head
Sreejith 7 years ago
parent
commit
f7e4e1cdb0
  1. 2
      oh_employee_creation_from_user/README.md
  2. 2
      oh_employee_creation_from_user/__init__.py
  3. 4
      oh_employee_creation_from_user/__manifest__.py
  4. 11
      oh_employee_creation_from_user/doc/RELEASE_NOTES.md
  5. 3
      oh_employee_creation_from_user/models/__init__.py
  6. 4
      oh_employee_creation_from_user/models/employee_creation_from_user.py
  7. 29
      oh_employee_creation_from_user/static/description/index.html
  8. BIN
      oh_employee_creation_from_user/static/description/oh_employee.png
  9. BIN
      oh_employee_creation_from_user/static/description/oh_user.png
  10. 2
      snippet_video_bg/__manifest__.py

2
oh_employee_creation_from_user/README.md

@ -1,4 +1,4 @@
OH Employees From User Open HRMS Employees From User
--------------------- ---------------------
Supporting Addon for Open HRMS, Creates Employee While Creating User Supporting Addon for Open HRMS, Creates Employee While Creating User

2
oh_employee_creation_from_user/__init__.py

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
################################################################################### ###################################################################################
# A part of OpenHRMS Project <https://www.openhrms.com> # A part of Open HRMS Project <https://www.openhrms.com>
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). # Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).

4
oh_employee_creation_from_user/__manifest__.py

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
################################################################################### ###################################################################################
# A part of OpenHRMS Project <https://www.openhrms.com> # A part of Open HRMS Project <https://www.openhrms.com>
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). # Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
@ -22,7 +22,7 @@
################################################################################### ###################################################################################
{ {
'name': 'Open HRMS Employees From User', 'name': 'Open HRMS Employees From User',
'version': '10.0.1.2.0', 'version': '10.0.1.1.0',
'summary': 'Automatically Creates Employee While Creating User', 'summary': 'Automatically Creates Employee While Creating User',
'description': 'This module helps you to create employees automatically while creating users', 'description': 'This module helps you to create employees automatically while creating users',
'category': 'Generic Modules/Human Resources', 'category': 'Generic Modules/Human Resources',

11
oh_employee_creation_from_user/doc/RELEASE_NOTES.md

@ -0,0 +1,11 @@
## Module <oh_employee_creation_from_user>
#### 12.04.2018
#### Version 10.0.1.1.0
##### CHG
- Index updated.
#### 30.03.2018
#### Version 10.0.1.0.0
##### ADD
- Initial commit for Open HRMS Project.

3
oh_employee_creation_from_user/models/__init__.py

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
################################################################################### ###################################################################################
# A part of OpenHRMS Project <https://www.openhrms.com> # A part of Open HRMS Project <https://www.openhrms.com>
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). # Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
@ -22,3 +22,4 @@
################################################################################### ###################################################################################
from . import employee_creation_from_user from . import employee_creation_from_user

4
oh_employee_creation_from_user/models/employee_creation_from_user.py

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
################################################################################### ###################################################################################
# A part of OpenHRMS Project <https://www.openhrms.com> # A part of Open HRMS Project <https://www.openhrms.com>
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). # Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
@ -32,6 +32,8 @@ class ResUsersInherit(models.Model):
@api.model @api.model
def create(self, vals): def create(self, vals):
"""This code is to create an employee while creating an user."""
result = super(ResUsersInherit, self).create(vals) result = super(ResUsersInherit, self).create(vals)
result['employee_id'] = self.env['hr.employee'].sudo().create({'name': result['name'], result['employee_id'] = self.env['hr.employee'].sudo().create({'name': result['name'],
'user_id': result['id'], 'user_id': result['id'],

29
oh_employee_creation_from_user/static/description/index.html

@ -1,6 +1,6 @@
<section class="oe_container bg-gray-lighter" xmlns="http://www.w3.org/1999/html"> <section class="oe_container">
<div class="oe_row"> <div class="oe_row">
<h2 class="oe_slogan">OpenHRMS</h2> <h2 class="oe_slogan">Open HRMS</h2>
<h3 class="oe_slogan">Most advanced open source HR management software</h3> <h3 class="oe_slogan">Most advanced open source HR management software</h3>
</div> </div>
</section> </section>
@ -19,13 +19,13 @@
<section class="oe_container"> <section class="oe_container">
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<h2 class="oe_slogan">OHRMS Employee From User</h2> <h2 class="oe_slogan">Open HRMS Employee From User</h2>
<h3 class="oe_slogan">An employee will creates automatically while creating user</h3> <h3 class="oe_slogan">An employee will creates automatically while creating an user</h3>
<h4 class="oe_slogan">Author : Cybrosys Techno Solutions , www.cybrosys.com</h4> <h4 class="oe_slogan">Author : Cybrosys Techno Solutions , www.cybrosys.com</h4>
</div> </div>
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<div> <div>
<span style="color:green;"> &#9745; </span>This module automatically creates employee while creating user. <span style="color:green;"> &#9745; </span>This module automatically creates employee while creating an user.
</div> </div>
</div> </div>
</section> </section>
@ -35,7 +35,7 @@
<div class="oe_picture"> <div class="oe_picture">
<h3 class="oe_slogan">Overview</h3> <h3 class="oe_slogan">Overview</h3>
<p class="oe_mt32 text-justify" style="text-align: center;"> <p class="oe_mt32 text-justify" style="text-align: center;">
This module automatically creating employee in employee table while creating users. This module automatically creating employee in employee table while creating the users.
This will simplify the HR process. This will simplify the HR process.
</p> </p>
</div> </div>
@ -44,14 +44,27 @@
<section class="oe_container"> <section class="oe_container">
<div class="oe_row oe_spaced"> <div class="oe_row oe_spaced">
<h4 class="oe_slogan">User</h4>
<div class="oe_span12"> <div class="oe_span12">
<div class="oe_demo oe_picture oe_screenshot"> <div class="oe_row_img oe_centered">
<img style="border:8px solid white;" src="oh_employee.png"> <img class="oe_picture oe_screenshot" src="oh_user.png">
</div> </div>
</div> </div>
</div> </div>
</section> </section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Employee</h4>
<div class="oe_span12">
<div class="oe_row_img oe_centered">
<img class="oe_picture oe_screenshot" src="oh_employee.png">
</div>
</div>
</div>
</section>
<div class="row section-content"> <div class="row section-content">
<div class="col-md-6 img-content"> <div class="col-md-6 img-content">
<h3>Our Odoo Services</h3> <h3>Our Odoo Services</h3>

BIN
oh_employee_creation_from_user/static/description/oh_employee.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 138 KiB

BIN
oh_employee_creation_from_user/static/description/oh_user.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 122 KiB

2
snippet_video_bg/__manifest__.py

@ -34,7 +34,7 @@
'category': 'Website', 'category': 'Website',
'depends': ['base', 'website'], 'depends': ['base', 'website'],
'data': [ 'data': [
'views/views.xml', 'views/assets.xml',
'views/conf_view.xml', 'views/conf_view.xml',
'views/templates.xml', 'views/templates.xml',
], ],

Loading…
Cancel
Save