Skip to content

Commit 455d6ff

Browse files
Nikul-ChaudharyTobias Zehntner
authored andcommitted
[MIG] hr_contract_reference v11 to v12
1 parent 68cecb2 commit 455d6ff

File tree

13 files changed

+529
-29
lines changed

13 files changed

+529
-29
lines changed

hr_contract_reference/README.rst

Lines changed: 46 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,38 @@
1-
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
2-
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
3-
:alt: License: AGPL-3
4-
1+
=====================
52
HR Contract Reference
63
=====================
74

5+
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6+
!! This file is generated by oca-gen-addon-readme !!
7+
!! changes will be overwritten. !!
8+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9+
10+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
11+
:target: https://odoo-community.org/page/development-status
12+
:alt: Beta
13+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
14+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
15+
:alt: License: AGPL-3
16+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github
17+
:target: https://github.com/OCA/hr/tree/12.0/hr_contract_reference
18+
:alt: OCA/hr
19+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20+
:target: https://translation.odoo-community.org/projects/hr-12-0/hr-12-0-hr_contract_reference
21+
:alt: Translate me on Weblate
22+
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
23+
:target: https://runbot.odoo-community.org/runbot/116/12.0
24+
:alt: Try me on Runbot
25+
26+
|badge1| |badge2| |badge3| |badge4| |badge5|
27+
828
This module was written to extend the functionality of employees contracts
929
to support sequence of contract reference which will be generated
1030
automatically from the sequence predefined.
1131

12-
Installation
13-
============
14-
15-
To install this module, you need to:
32+
**Table of contents**
1633

17-
* clone the branch 11.0 of the repository https://github.com/OCA/hr
18-
* add the path to this repository in your configuration (addons-path)
19-
* update the module list
20-
* search for "HR Contract Reference" in your addons
21-
* install the module
34+
.. contents::
35+
:local:
2236

2337
Configuration
2438
=============
@@ -34,39 +48,47 @@ Usage
3448
When you will create a new employee contract, the field reference will be
3549
assigned automatically with the next number of the predefined sequence.
3650

37-
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
38-
:alt: Try me on Runbot
39-
:target: https://runbot.odoo-community.org/runbot/116/11.0
40-
4151
Bug Tracker
4252
===========
4353

4454
Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr/issues>`_.
4555
In case of trouble, please check there if your issue has already been reported.
46-
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
56+
If you spotted it first, help us smashing it by providing a detailed and welcomed
57+
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_contract_reference%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
58+
59+
Do not contact contributors directly about support or help with technical issues.
4760

4861
Credits
4962
=======
5063

64+
Authors
65+
~~~~~~~
66+
67+
* Michael Telahun Makonnen
68+
* Fekete Mihai (Forest and Biomass Services Romania)
69+
5170
Contributors
52-
------------
71+
~~~~~~~~~~~~
5372

5473
* Michael Telahun Makonnen <[email protected]>
5574
* Fekete Mihai <[email protected]>
5675
* Denis Leemann <[email protected]>
5776
* Serpent Consulting Services Pvt. Ltd. <[email protected]>
77+
* Nikul Chaudhary <[email protected]>
78+
79+
Maintainers
80+
~~~~~~~~~~~
5881

59-
Maintainer
60-
----------
82+
This module is maintained by the OCA.
6183

6284
.. image:: https://odoo-community.org/logo.png
6385
:alt: Odoo Community Association
6486
:target: https://odoo-community.org
6587

66-
This module is maintained by the OCA.
67-
6888
OCA, or the Odoo Community Association, is a nonprofit organization whose
6989
mission is to support the collaborative development of Odoo features and
7090
promote its widespread use.
7191

72-
To contribute to this module, please visit https://odoo-community.org.
92+
This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/12.0/hr_contract_reference>`_ project on GitHub.
93+
94+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

hr_contract_reference/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# copyright 2011,2013 Michael Telahun Makonnen <[email protected]>
21
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
32

43
from . import models

hr_contract_reference/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
33
{
44
"name": "HR Contract Reference",
5-
"version": "11.0.1.0.0",
5+
"version": "12.0.1.0.0",
66
"category": "Generic Modules/Human Resources",
77
"author": 'Michael Telahun Makonnen, '
88
'Fekete Mihai (Forest and Biomass Services Romania), '
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<odoo noupdate="1">
3+
34
<record id="seq_contract_ref" model="ir.sequence">
45
<field name="name">Contract Reference</field>
56
<field name="code">contract.ref</field>
67
<field name="prefix">EC/%(year)s/</field>
78
<field name="padding">5</field>
89
</record>
10+
911
</odoo>
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# copyright 2011,2013 Michael Telahun Makonnen <[email protected]>
21
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
32

43
from . import hr_contract

hr_contract_reference/models/hr_contract.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
class HrContract(models.Model):
88
_inherit = 'hr.contract'
99

10-
name = fields.Char('Contract Reference', required=False,
11-
readonly=True, copy=False, default='/')
10+
name = fields.Char(
11+
'Contract Reference',
12+
required=False,
13+
readonly=True,
14+
copy=False,
15+
default='/'
16+
)
1217

1318
@api.model
1419
def create(self, vals):
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
If you want to modify the format of the sequence, go to
2+
Settings -> Technical -> Sequences & Identifiers -> Sequences
3+
and search for the "Contract Reference" sequence, where you modify
4+
its prefix and numbering formats.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
* Michael Telahun Makonnen <[email protected]>
2+
* Fekete Mihai <[email protected]>
3+
* Denis Leemann <[email protected]>
4+
* Serpent Consulting Services Pvt. Ltd. <[email protected]>
5+
* Nikul Chaudhary <[email protected]>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This module was written to extend the functionality of employees contracts
2+
to support sequence of contract reference which will be generated
3+
automatically from the sequence predefined.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
When you will create a new employee contract, the field reference will be
2+
assigned automatically with the next number of the predefined sequence.

0 commit comments

Comments
 (0)