-
-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] hr_personal_equipment_request: Migration to 17.0
- Loading branch information
Showing
18 changed files
with
148 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,18 +17,19 @@ Hr Personal Equipment Request | |
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github | ||
:target: https://github.com/OCA/hr/tree/16.0/hr_personal_equipment_request | ||
:target: https://github.com/OCA/hr/tree/17.0/hr_personal_equipment_request | ||
:alt: OCA/hr | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/hr-16-0/hr-16-0-hr_personal_equipment_request | ||
:target: https://translation.odoo-community.org/projects/hr-17-0/hr-17-0-hr_personal_equipment_request | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=16.0 | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=17.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module allows to create a personal equipment request and manage allocation of employee personal equipment. | ||
This module allows to create a personal equipment request and manage | ||
allocation of employee personal equipment. | ||
|
||
**Table of contents** | ||
|
||
|
@@ -38,52 +39,61 @@ This module allows to create a personal equipment request and manage allocation | |
Usage | ||
===== | ||
|
||
First, products which can be requested by employees should be marked as employee personal equipment. | ||
1. Go to *Products* (In *Inventory* App for example). | ||
2. Select a product. | ||
3. Mark the *Is Employee Personal Equipment* flag.(An additional page appears which serves as a hook if additional fields are needed). | ||
|
||
To create a personal equipment request, a common user should follow the next steps: | ||
1. Go to menu *Employees -> Personal Equipment-> Employee Personal Equipment Request* | ||
2. Current employee is set as default. (An Hr Officer can change the employee if needed). | ||
3. At *Personal Equipment* select the equipments you want to request. | ||
4. Add "Observations" at *Observations* if desired. | ||
|
||
Then, an HR Manager should: | ||
1. If everything is correct, "Accept" the request. | ||
2. Finally, when the equipment is given to the employee, the allocation should be validated. This can be done in two ways: | ||
a) Click the allocation in the equipment request that you want to validate, the form view will be opened, and click "Validate". | ||
b) Go to *Employees -> Personal Equipment-> Allocations*. Select the corresponding allocation and click "Validate". | ||
|
||
A common user can only see its own allocations. The HR Officer can see all of them. | ||
|
||
If needed, the allocation can be expired clicking the button "Expire", which can be found at the allocation form view. | ||
First, products which can be requested by employees should be marked as | ||
employee personal equipment. 1. Go to *Products* (In *Inventory* App for | ||
example). 2. Select a product. 3. Mark the *Is Employee Personal | ||
Equipment* flag.(An additional page appears which serves as a hook if | ||
additional fields are needed). | ||
|
||
To create a personal equipment request, a common user should follow the | ||
next steps: 1. Go to menu *Employees -> Personal Equipment-> Employee | ||
Personal Equipment Request* 2. Current employee is set as default. (An | ||
Hr Officer can change the employee if needed). 3. At *Personal | ||
Equipment* select the equipments you want to request. 4. Add | ||
"Observations" at *Observations* if desired. | ||
|
||
Then, an HR Manager should: 1. If everything is correct, "Accept" the | ||
request. 2. Finally, when the equipment is given to the employee, the | ||
allocation should be validated. This can be done in two ways: a) Click | ||
the allocation in the equipment request that you want to validate, the | ||
form view will be opened, and click "Validate". b) Go to *Employees -> | ||
Personal Equipment-> Allocations*. Select the corresponding allocation | ||
and click "Validate". | ||
|
||
A common user can only see its own allocations. The HR Officer can see | ||
all of them. | ||
|
||
If needed, the allocation can be expired clicking the button "Expire", | ||
which can be found at the allocation form view. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_personal_equipment_request%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_personal_equipment_request%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
------- | ||
|
||
* Creu Blanca | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
------------ | ||
|
||
- Alba Riera <[email protected]> | ||
- `APSL <https://apsl.tech>`__: | ||
|
||
* Alba Riera <[email protected]> | ||
- Antoni Marroig <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
----------- | ||
|
||
This module is maintained by the OCA. | ||
|
||
|
@@ -95,6 +105,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose | |
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/16.0/hr_personal_equipment_request>`_ project on GitHub. | ||
This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/17.0/hr_personal_equipment_request>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
|
||
|
||
class HrEmployee(models.Model): | ||
|
||
_inherit = "hr.employee" | ||
|
||
equipment_request_ids = fields.One2many( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- Alba Riera \<<[email protected]>\> | ||
- [APSL](https://apsl.tech): | ||
- Antoni Marroig \<<[email protected]>\> |
This file was deleted.
Oops, something went wrong.
3 changes: 2 additions & 1 deletion
3
..._equipment_request/readme/DESCRIPTION.rst → ...l_equipment_request/readme/DESCRIPTION.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
This module allows to create a personal equipment request and manage allocation of employee personal equipment. | ||
This module allows to create a personal equipment request and manage | ||
allocation of employee personal equipment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
First, products which can be requested by employees should be marked as | ||
employee personal equipment. 1. Go to *Products* (In *Inventory* App for | ||
example). 2. Select a product. 3. Mark the *Is Employee Personal | ||
Equipment* flag.(An additional page appears which serves as a hook if | ||
additional fields are needed). | ||
|
||
To create a personal equipment request, a common user should follow the | ||
next steps: 1. Go to menu *Employees -\> Personal Equipment-\> Employee | ||
Personal Equipment Request* 2. Current employee is set as default. (An | ||
Hr Officer can change the employee if needed). 3. At *Personal | ||
Equipment* select the equipments you want to request. 4. Add | ||
"Observations" at *Observations* if desired. | ||
|
||
Then, an HR Manager should: 1. If everything is correct, "Accept" the | ||
request. 2. Finally, when the equipment is given to the employee, the | ||
allocation should be validated. This can be done in two ways: a) Click | ||
the allocation in the equipment request that you want to validate, the | ||
form view will be opened, and click "Validate". b) Go to *Employees -\> | ||
Personal Equipment-\> Allocations*. Select the corresponding allocation | ||
and click "Validate". | ||
|
||
A common user can only see its own allocations. The HR Officer can see | ||
all of them. | ||
|
||
If needed, the allocation can be expired clicking the button "Expire", | ||
which can be found at the allocation form view. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.