From 37c68c88512ac28b61770cdcac51e7c19b36c5f8 Mon Sep 17 00:00:00 2001
From: Michael Telahun Makonnen
Date: Mon, 12 Aug 2013 12:07:07 +0300
Subject: [PATCH 01/51] Employee and Contract Management, Attendance and
Scheduling, Payroll Management modules
---
hr_contract_reference/__init__.py | 22 ++++++++++
hr_contract_reference/__openerp__.py | 44 +++++++++++++++++++
hr_contract_reference/hr_contract.py | 38 ++++++++++++++++
.../hr_contract_sequence.xml | 15 +++++++
hr_contract_reference/hr_contract_view.xml | 17 +++++++
5 files changed, 136 insertions(+)
create mode 100644 hr_contract_reference/__init__.py
create mode 100644 hr_contract_reference/__openerp__.py
create mode 100644 hr_contract_reference/hr_contract.py
create mode 100644 hr_contract_reference/hr_contract_sequence.xml
create mode 100644 hr_contract_reference/hr_contract_view.xml
diff --git a/hr_contract_reference/__init__.py b/hr_contract_reference/__init__.py
new file mode 100644
index 00000000000..47d00e69633
--- /dev/null
+++ b/hr_contract_reference/__init__.py
@@ -0,0 +1,22 @@
+#-*- coding:utf-8 -*-
+##############################################################################
+#
+# Copyright (C) 2011 Michael Telahun Makonnen .
+# All Rights Reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+import hr_contract
diff --git a/hr_contract_reference/__openerp__.py b/hr_contract_reference/__openerp__.py
new file mode 100644
index 00000000000..e50de00f246
--- /dev/null
+++ b/hr_contract_reference/__openerp__.py
@@ -0,0 +1,44 @@
+#-*- coding:utf-8 -*-
+##############################################################################
+#
+# Copyright (C) 2011,2013 Michael Telahun Makonnen .
+# All Rights Reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+{
+ "name": "HR Contract Reference",
+ "version": "1.0",
+ "category": "Generic Modules/Human Resources",
+ "description": """
+HR Contract Reference
+=====================
+This module provides :
+ - Unique reference number for each employee contract
+ - Automatically generated
+ """,
+ "author": "Michael Telahun Makonnen .
+# All Rights Reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from osv import fields, osv
+
+class hr_contract(osv.osv):
+
+ _inherit = 'hr.contract'
+
+ _columns = {
+ 'name': fields.char('Contract Reference', size=32, required=False, readonly=True),
+ }
+
+ def create(self, cr, uid, vals, context=None):
+
+ cid = super(hr_contract, self).create(cr, uid, vals, context)
+ if cid:
+ ref = self.pool.get('ir.sequence').next_by_code(cr, uid, 'contract.ref', context=context)
+ self.pool.get('hr.contract').write(cr, uid, cid, {'name': ref}, context=context)
+ return cid
diff --git a/hr_contract_reference/hr_contract_sequence.xml b/hr_contract_reference/hr_contract_sequence.xml
new file mode 100644
index 00000000000..75d2a6b7d7c
--- /dev/null
+++ b/hr_contract_reference/hr_contract_sequence.xml
@@ -0,0 +1,15 @@
+
+
+
+
+ Contract Reference
+ contract.ref
+
+
+ Contract Reference
+ contract.ref
+ EC/%(year)s/
+ 5
+
+
+
\ No newline at end of file
diff --git a/hr_contract_reference/hr_contract_view.xml b/hr_contract_reference/hr_contract_view.xml
new file mode 100644
index 00000000000..bf24da7648a
--- /dev/null
+++ b/hr_contract_reference/hr_contract_view.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ hr.contract.form.view.inherit.ref
+ hr.contract
+ form
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From 256442f85e033db125a2f75e857d3798e25da832 Mon Sep 17 00:00:00 2001
From: Maxime Chambreuil
Date: Mon, 23 Sep 2013 09:55:07 -0400
Subject: [PATCH 02/51] PEP8
---
hr_contract_reference/__init__.py | 6 +++---
hr_contract_reference/__openerp__.py | 10 +++++-----
hr_contract_reference/hr_contract.py | 21 ++++++++++++---------
3 files changed, 20 insertions(+), 17 deletions(-)
diff --git a/hr_contract_reference/__init__.py b/hr_contract_reference/__init__.py
index 47d00e69633..5d292ee5220 100644
--- a/hr_contract_reference/__init__.py
+++ b/hr_contract_reference/__init__.py
@@ -1,5 +1,5 @@
#-*- coding:utf-8 -*-
-##############################################################################
+#
#
# Copyright (C) 2011 Michael Telahun Makonnen .
# All Rights Reserved.
@@ -17,6 +17,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see .
#
-##############################################################################
+#
-import hr_contract
+from . import hr_contract
diff --git a/hr_contract_reference/__openerp__.py b/hr_contract_reference/__openerp__.py
index e50de00f246..973a7aa3512 100644
--- a/hr_contract_reference/__openerp__.py
+++ b/hr_contract_reference/__openerp__.py
@@ -1,5 +1,5 @@
#-*- coding:utf-8 -*-
-##############################################################################
+#
#
# Copyright (C) 2011,2013 Michael Telahun Makonnen .
# All Rights Reserved.
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see .
#
-##############################################################################
+#
{
"name": "HR Contract Reference",
@@ -35,9 +35,9 @@
"depends": ["hr_contract"],
"init_xml": [],
'update_xml': [
- 'hr_contract_view.xml',
- 'hr_contract_sequence.xml',
- ],
+ 'hr_contract_view.xml',
+ 'hr_contract_sequence.xml',
+ ],
'demo_xml': [],
'installable': True,
'active': False,
diff --git a/hr_contract_reference/hr_contract.py b/hr_contract_reference/hr_contract.py
index 799c4389099..b7962ad08ee 100644
--- a/hr_contract_reference/hr_contract.py
+++ b/hr_contract_reference/hr_contract.py
@@ -1,5 +1,5 @@
#-*- coding:utf-8 -*-
-##############################################################################
+#
#
# Copyright (C) 2011,2013 Michael Telahun Makonnen .
# All Rights Reserved.
@@ -17,22 +17,25 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see .
#
-##############################################################################
+#
from osv import fields, osv
+
class hr_contract(osv.osv):
-
+
_inherit = 'hr.contract'
-
+
_columns = {
- 'name': fields.char('Contract Reference', size=32, required=False, readonly=True),
+ 'name': fields.char('Contract Reference', size=32, required=False, readonly=True),
}
-
+
def create(self, cr, uid, vals, context=None):
-
+
cid = super(hr_contract, self).create(cr, uid, vals, context)
if cid:
- ref = self.pool.get('ir.sequence').next_by_code(cr, uid, 'contract.ref', context=context)
- self.pool.get('hr.contract').write(cr, uid, cid, {'name': ref}, context=context)
+ ref = self.pool.get('ir.sequence').next_by_code(
+ cr, uid, 'contract.ref', context=context)
+ self.pool.get('hr.contract').write(
+ cr, uid, cid, {'name': ref}, context=context)
return cid
From f9effe02f967b36a05dcd964f27efa70ad48e4d2 Mon Sep 17 00:00:00 2001
From: Daniel Reis
Date: Tue, 16 Sep 2014 16:51:50 +0100
Subject: [PATCH 03/51] Initialize 8.0 branch
---
hr_contract_reference/__init__.py | 22 ----------
hr_contract_reference/__openerp__.py | 44 -------------------
hr_contract_reference/hr_contract.py | 41 -----------------
.../hr_contract_sequence.xml | 15 -------
hr_contract_reference/hr_contract_view.xml | 17 -------
5 files changed, 139 deletions(-)
delete mode 100644 hr_contract_reference/__init__.py
delete mode 100644 hr_contract_reference/__openerp__.py
delete mode 100644 hr_contract_reference/hr_contract.py
delete mode 100644 hr_contract_reference/hr_contract_sequence.xml
delete mode 100644 hr_contract_reference/hr_contract_view.xml
diff --git a/hr_contract_reference/__init__.py b/hr_contract_reference/__init__.py
deleted file mode 100644
index 5d292ee5220..00000000000
--- a/hr_contract_reference/__init__.py
+++ /dev/null
@@ -1,22 +0,0 @@
-#-*- coding:utf-8 -*-
-#
-#
-# Copyright (C) 2011 Michael Telahun Makonnen .
-# All Rights Reserved.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-#
-
-from . import hr_contract
diff --git a/hr_contract_reference/__openerp__.py b/hr_contract_reference/__openerp__.py
deleted file mode 100644
index 973a7aa3512..00000000000
--- a/hr_contract_reference/__openerp__.py
+++ /dev/null
@@ -1,44 +0,0 @@
-#-*- coding:utf-8 -*-
-#
-#
-# Copyright (C) 2011,2013 Michael Telahun Makonnen .
-# All Rights Reserved.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-#
-
-{
- "name": "HR Contract Reference",
- "version": "1.0",
- "category": "Generic Modules/Human Resources",
- "description": """
-HR Contract Reference
-=====================
-This module provides :
- - Unique reference number for each employee contract
- - Automatically generated
- """,
- "author": "Michael Telahun Makonnen .
-# All Rights Reserved.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-#
-
-from osv import fields, osv
-
-
-class hr_contract(osv.osv):
-
- _inherit = 'hr.contract'
-
- _columns = {
- 'name': fields.char('Contract Reference', size=32, required=False, readonly=True),
- }
-
- def create(self, cr, uid, vals, context=None):
-
- cid = super(hr_contract, self).create(cr, uid, vals, context)
- if cid:
- ref = self.pool.get('ir.sequence').next_by_code(
- cr, uid, 'contract.ref', context=context)
- self.pool.get('hr.contract').write(
- cr, uid, cid, {'name': ref}, context=context)
- return cid
diff --git a/hr_contract_reference/hr_contract_sequence.xml b/hr_contract_reference/hr_contract_sequence.xml
deleted file mode 100644
index 75d2a6b7d7c..00000000000
--- a/hr_contract_reference/hr_contract_sequence.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
- Contract Reference
- contract.ref
-
-
- Contract Reference
- contract.ref
- EC/%(year)s/
- 5
-
-
-
\ No newline at end of file
diff --git a/hr_contract_reference/hr_contract_view.xml b/hr_contract_reference/hr_contract_view.xml
deleted file mode 100644
index bf24da7648a..00000000000
--- a/hr_contract_reference/hr_contract_view.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
- hr.contract.form.view.inherit.ref
- hr.contract
- form
-
-
-
-
-
-
-
-
-
\ No newline at end of file
From 2c5d5b316c0807fe886830b0ad78e644a5477356 Mon Sep 17 00:00:00 2001
From: Fekete Mihai
Date: Tue, 21 Apr 2015 10:24:12 +0300
Subject: [PATCH 04/51] Port hr_contract_reference to V8 and new api.
---
hr_contract_reference/__init__.py | 23 ++++++++++
hr_contract_reference/__openerp__.py | 42 +++++++++++++++++++
.../data/hr_contract_sequence.xml | 15 +++++++
hr_contract_reference/models/__init__.py | 23 ++++++++++
hr_contract_reference/models/hr_contract.py | 38 +++++++++++++++++
.../views/hr_contract_view.xml | 17 ++++++++
6 files changed, 158 insertions(+)
create mode 100644 hr_contract_reference/__init__.py
create mode 100644 hr_contract_reference/__openerp__.py
create mode 100644 hr_contract_reference/data/hr_contract_sequence.xml
create mode 100644 hr_contract_reference/models/__init__.py
create mode 100644 hr_contract_reference/models/hr_contract.py
create mode 100644 hr_contract_reference/views/hr_contract_view.xml
diff --git a/hr_contract_reference/__init__.py b/hr_contract_reference/__init__.py
new file mode 100644
index 00000000000..f40d7d19b15
--- /dev/null
+++ b/hr_contract_reference/__init__.py
@@ -0,0 +1,23 @@
+# -*- coding:utf-8 -*-
+##############################################################################
+#
+# Copyright (C) 2011,2013 Michael Telahun Makonnen .
+# All Rights Reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published
+# by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from . import models
diff --git a/hr_contract_reference/__openerp__.py b/hr_contract_reference/__openerp__.py
new file mode 100644
index 00000000000..df1601f6ec8
--- /dev/null
+++ b/hr_contract_reference/__openerp__.py
@@ -0,0 +1,42 @@
+# -*- coding:utf-8 -*-
+##############################################################################
+#
+# Copyright (C) 2011,2013 Michael Telahun Makonnen .
+# All Rights Reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published
+# by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+{
+ "name": "HR Contract Reference",
+ "version": "1.0",
+ "category": "Generic Modules/Human Resources",
+ "description": """
+HR Contract Reference
+=====================
+This module provides :
+ - Unique reference number for each employee contract
+ - Automatically generated
+ """,
+ "author": "Michael Telahun Makonnen
+
+
+
+ Contract Reference
+ contract.ref
+
+
+ Contract Reference
+ contract.ref
+ EC/%(year)s/
+ 5
+
+
+
\ No newline at end of file
diff --git a/hr_contract_reference/models/__init__.py b/hr_contract_reference/models/__init__.py
new file mode 100644
index 00000000000..839187d9855
--- /dev/null
+++ b/hr_contract_reference/models/__init__.py
@@ -0,0 +1,23 @@
+# -*- coding:utf-8 -*-
+##############################################################################
+#
+# Copyright (C) 2011,2013 Michael Telahun Makonnen .
+# All Rights Reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published
+# by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from . import hr_contract
diff --git a/hr_contract_reference/models/hr_contract.py b/hr_contract_reference/models/hr_contract.py
new file mode 100644
index 00000000000..f33ba84af7a
--- /dev/null
+++ b/hr_contract_reference/models/hr_contract.py
@@ -0,0 +1,38 @@
+# -*- coding:utf-8 -*-
+##############################################################################
+#
+# Copyright (C) 2011,2013 Michael Telahun Makonnen .
+# All Rights Reserved.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published
+# by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from openerp import models, fields, api
+
+
+class hr_contract(models.Model):
+ _inherit = 'hr.contract'
+
+ name = fields.Char('Contract Reference', required=False,
+ readonly=True, copy=False)
+
+ @api.model
+ def create(self, vals):
+ contract = super(hr_contract, self).create(vals)
+ if contract:
+ contract[0].name = self.env['ir.sequence'].next_by_code(
+ 'contract.ref')
+ return contract
diff --git a/hr_contract_reference/views/hr_contract_view.xml b/hr_contract_reference/views/hr_contract_view.xml
new file mode 100644
index 00000000000..bf24da7648a
--- /dev/null
+++ b/hr_contract_reference/views/hr_contract_view.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ hr.contract.form.view.inherit.ref
+ hr.contract
+ form
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From dc517f11e1c5db9f895448850f36192ef3863de8 Mon Sep 17 00:00:00 2001
From: Fekete Mihai
Date: Tue, 21 Apr 2015 10:27:34 +0300
Subject: [PATCH 05/51] Add readme.
---
hr_contract_reference/README.rst | 10 ++++++++++
hr_contract_reference/__openerp__.py | 7 -------
2 files changed, 10 insertions(+), 7 deletions(-)
create mode 100644 hr_contract_reference/README.rst
diff --git a/hr_contract_reference/README.rst b/hr_contract_reference/README.rst
new file mode 100644
index 00000000000..915cfcecf04
--- /dev/null
+++ b/hr_contract_reference/README.rst
@@ -0,0 +1,10 @@
+HR Contract Reference
+=====================
+This module provides :
+ - Unique reference number for each employee contract
+ - Automatically generated from defined sequence
+
+Contributors
+------------
+* Michael Telahun Makonnen
+* Fekete Mihai
diff --git a/hr_contract_reference/__openerp__.py b/hr_contract_reference/__openerp__.py
index df1601f6ec8..64b0b320f77 100644
--- a/hr_contract_reference/__openerp__.py
+++ b/hr_contract_reference/__openerp__.py
@@ -23,13 +23,6 @@
"name": "HR Contract Reference",
"version": "1.0",
"category": "Generic Modules/Human Resources",
- "description": """
-HR Contract Reference
-=====================
-This module provides :
- - Unique reference number for each employee contract
- - Automatically generated
- """,
"author": "Michael Telahun Makonnen
Date: Tue, 21 Apr 2015 10:55:17 +0300
Subject: [PATCH 06/51] Update readme.
---
hr_contract_reference/README.rst | 56 +++++++++++++++++++++++++++++---
1 file changed, 52 insertions(+), 4 deletions(-)
diff --git a/hr_contract_reference/README.rst b/hr_contract_reference/README.rst
index 915cfcecf04..3a963d6c488 100644
--- a/hr_contract_reference/README.rst
+++ b/hr_contract_reference/README.rst
@@ -1,10 +1,58 @@
+.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
+ :alt: License: AGPL-3
+
HR Contract Reference
-=====================
-This module provides :
- - Unique reference number for each employee contract
- - Automatically generated from defined sequence
+===========
+
+This module was written to extend the functionality of employees contracts
+to support sequence of contract reference which will be generated
+automatically from the sequence predefined.
+
+Installation
+============
+
+To install this module, you need to:
+
+* clone the branch 8.0 of the repository https://github.com/OCA/hr
+* add the path to this repository in your configuration (addons-path)
+* update the module list
+* search for "HR Contract Reference" in your addons
+* install the module
+
+Configuration
+=============
+
+If you want to modify the format of the sequence, go to
+Seetings -> Technical -> Sequences & Identifiers -> Sequences
+and search for the "Contract Reference" sequence, where you modify
+it's prefix and numbering formats.
+
+Usage
+=====
+
+When you will create a new employee contract, the field reference will be
+assigned automatically with the next number of the predefined sequence.
+
+Credits
+=======
Contributors
------------
+
* Michael Telahun Makonnen
* Fekete Mihai
+
+Maintainer
+----------
+
+.. image:: http://odoo-community.org/logo.png
+ :alt: Odoo Community Association
+ :target: http://odoo-community.org
+
+This module is maintained by the OCA.
+
+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.
+
+To contribute to this module, please visit http://odoo-community.org.
From 7f084b6d5ed9e97b0011940dc62146d99dec18d5 Mon Sep 17 00:00:00 2001
From: Fekete Mihai
Date: Tue, 21 Apr 2015 11:05:45 +0300
Subject: [PATCH 07/51] Update code as commented, update readme.
---
hr_contract_reference/models/hr_contract.py | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/hr_contract_reference/models/hr_contract.py b/hr_contract_reference/models/hr_contract.py
index f33ba84af7a..fd1774d1a98 100644
--- a/hr_contract_reference/models/hr_contract.py
+++ b/hr_contract_reference/models/hr_contract.py
@@ -27,12 +27,10 @@ class hr_contract(models.Model):
_inherit = 'hr.contract'
name = fields.Char('Contract Reference', required=False,
- readonly=True, copy=False)
+ readonly=True, copy=False, default='/')
@api.model
def create(self, vals):
- contract = super(hr_contract, self).create(vals)
- if contract:
- contract[0].name = self.env['ir.sequence'].next_by_code(
- 'contract.ref')
- return contract
+ if vals.get('number', '/') == '/':
+ vals['name'] = self.env['ir.sequence'].next_by_code('contract.ref')
+ return super(hr_contract, self).create(vals)
From b9940ddb82d01f18668e42f33186edeb29c0e8fe Mon Sep 17 00:00:00 2001
From: Fekete Mihai
Date: Tue, 21 Apr 2015 11:26:30 +0300
Subject: [PATCH 08/51] Fix travis errors.
---
hr_contract_reference/__openerp__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hr_contract_reference/__openerp__.py b/hr_contract_reference/__openerp__.py
index 64b0b320f77..2b68550875f 100644
--- a/hr_contract_reference/__openerp__.py
+++ b/hr_contract_reference/__openerp__.py
@@ -23,7 +23,7 @@
"name": "HR Contract Reference",
"version": "1.0",
"category": "Generic Modules/Human Resources",
- "author": "Michael Telahun Makonnen
Date: Tue, 21 Apr 2015 12:18:58 +0300
Subject: [PATCH 09/51] Update readme.
---
hr_contract_reference/README.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hr_contract_reference/README.rst b/hr_contract_reference/README.rst
index 3a963d6c488..c83d4360e95 100644
--- a/hr_contract_reference/README.rst
+++ b/hr_contract_reference/README.rst
@@ -2,7 +2,7 @@
:alt: License: AGPL-3
HR Contract Reference
-===========
+=====================
This module was written to extend the functionality of employees contracts
to support sequence of contract reference which will be generated
From 07862ec9be727691e26ee1dfbb55acf3e4c19979 Mon Sep 17 00:00:00 2001
From: Fekete Mihai
Date: Tue, 21 Apr 2015 12:30:23 +0300
Subject: [PATCH 10/51] Update authors, license definition.
---
hr_contract_reference/__init__.py | 3 +--
hr_contract_reference/__openerp__.py | 7 ++++---
hr_contract_reference/models/__init__.py | 3 +--
hr_contract_reference/models/hr_contract.py | 3 +--
4 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/hr_contract_reference/__init__.py b/hr_contract_reference/__init__.py
index f40d7d19b15..eac8ce4bbd6 100644
--- a/hr_contract_reference/__init__.py
+++ b/hr_contract_reference/__init__.py
@@ -6,8 +6,7 @@
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
-# by
-# the Free Software Foundation, either version 3 of the License, or
+# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
diff --git a/hr_contract_reference/__openerp__.py b/hr_contract_reference/__openerp__.py
index 2b68550875f..db417ca5564 100644
--- a/hr_contract_reference/__openerp__.py
+++ b/hr_contract_reference/__openerp__.py
@@ -6,8 +6,7 @@
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
-# by
-# the Free Software Foundation, either version 3 of the License, or
+# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -23,7 +22,9 @@
"name": "HR Contract Reference",
"version": "1.0",
"category": "Generic Modules/Human Resources",
- "author": "Michael Telahun Makonnen,Odoo Community Association (OCA)",
+ "author": 'Michael Telahun Makonnen, '
+ 'Fekete Mihai (Forest and Biomass Services Romania), '
+ 'Odoo Community Association (OCA)',
"website": "http://miketelahun.wordpress.com",
"license": "AGPL-3",
"depends": ["hr_contract"],
diff --git a/hr_contract_reference/models/__init__.py b/hr_contract_reference/models/__init__.py
index 839187d9855..d6b47d95e89 100644
--- a/hr_contract_reference/models/__init__.py
+++ b/hr_contract_reference/models/__init__.py
@@ -6,8 +6,7 @@
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
-# by
-# the Free Software Foundation, either version 3 of the License, or
+# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
diff --git a/hr_contract_reference/models/hr_contract.py b/hr_contract_reference/models/hr_contract.py
index fd1774d1a98..2969d8c703e 100644
--- a/hr_contract_reference/models/hr_contract.py
+++ b/hr_contract_reference/models/hr_contract.py
@@ -6,8 +6,7 @@
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
-# by
-# the Free Software Foundation, either version 3 of the License, or
+# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
From 0b0303a5dd6181fa78f2cadbac2c0afb4d87cfda Mon Sep 17 00:00:00 2001
From: Fekete Mihai
Date: Wed, 22 Apr 2015 07:52:18 +0300
Subject: [PATCH 11/51] Fix typo.
---
hr_contract_reference/README.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hr_contract_reference/README.rst b/hr_contract_reference/README.rst
index c83d4360e95..81094bb23db 100644
--- a/hr_contract_reference/README.rst
+++ b/hr_contract_reference/README.rst
@@ -23,9 +23,9 @@ Configuration
=============
If you want to modify the format of the sequence, go to
-Seetings -> Technical -> Sequences & Identifiers -> Sequences
+Settings -> Technical -> Sequences & Identifiers -> Sequences
and search for the "Contract Reference" sequence, where you modify
-it's prefix and numbering formats.
+its prefix and numbering formats.
Usage
=====
From e210f3b02badf2c50e9cdda61827b7f3a1b9b440 Mon Sep 17 00:00:00 2001
From: Yannick Vaucher
Date: Tue, 18 Aug 2015 11:16:12 +0200
Subject: [PATCH 12/51] Add missing default oca icons
---
.../static/description/icon.png | Bin 0 -> 9455 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 hr_contract_reference/static/description/icon.png
diff --git a/hr_contract_reference/static/description/icon.png b/hr_contract_reference/static/description/icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d
GIT binary patch
literal 9455
zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~!
zVpnB`o+K7|Al`Q_U;eD$B
zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA
z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__
zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_
zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I
z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U
z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}+xWi)(
z;)z%wI5>D4a*5XwD)P--sPkoY(a~WBw;E~AW`Yue4kFa^LM3X`8x|}ZUeMnqr}>kH
zG%WWW>3ml$Yez?i%)2pbKPI7?5o?hydokgQyZsNEr{a|mLdt;X2TX(#B1j35xPnPW
z*bMSSOauW>o;*=kO8ojw91VX!qoOQb)zHJ!odWB}d+*K?#sY_jqPdg{Sm2HdYzdEx
zOGVPhVRTGPtv0o}RfVP;Nd(|CB)I;*t&QO8h
zFfekr30S!-LHmV_Su-W+rEwYXJ^;6&3|L$mMC8*bQptyOo9;>Qb9Q9`ySe3%V$A*9
zeKEe+b0{#KWGp$F+tga)0RtI)n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{6EJwiPZ8zub-iXoUtkJiG{}
zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N
Xviia!U7SGha1wx#SCgwmn*{w2TRX*I
literal 0
HcmV?d00001
From 622637d40e9d035993ff9d9f4fdbd16971255e4c Mon Sep 17 00:00:00 2001
From: OCA Transbot
Date: Tue, 1 Sep 2015 13:34:27 -0400
Subject: [PATCH 13/51] OCA Transbot updated translations from Transifex
---
hr_contract_reference/i18n/de.po | 23 +++++++++++++++++++++++
hr_contract_reference/i18n/fr.po | 23 +++++++++++++++++++++++
hr_contract_reference/i18n/ro.po | 23 +++++++++++++++++++++++
hr_contract_reference/i18n/sl.po | 23 +++++++++++++++++++++++
4 files changed, 92 insertions(+)
create mode 100644 hr_contract_reference/i18n/de.po
create mode 100644 hr_contract_reference/i18n/fr.po
create mode 100644 hr_contract_reference/i18n/ro.po
create mode 100644 hr_contract_reference/i18n/sl.po
diff --git a/hr_contract_reference/i18n/de.po b/hr_contract_reference/i18n/de.po
new file mode 100644
index 00000000000..1c952e7bba4
--- /dev/null
+++ b/hr_contract_reference/i18n/de.po
@@ -0,0 +1,23 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * hr_contract_reference
+#
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: hr (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-08-18 13:10+0000\n"
+"PO-Revision-Date: 2015-07-27 23:43+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: German (http://www.transifex.com/oca/OCA-hr-8-0/language/de/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: de\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Contract"
+msgstr "Vertrag"
diff --git a/hr_contract_reference/i18n/fr.po b/hr_contract_reference/i18n/fr.po
new file mode 100644
index 00000000000..4a7530d9e8e
--- /dev/null
+++ b/hr_contract_reference/i18n/fr.po
@@ -0,0 +1,23 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * hr_contract_reference
+#
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: hr (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-08-18 13:10+0000\n"
+"PO-Revision-Date: 2015-07-27 23:43+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: French (http://www.transifex.com/oca/OCA-hr-8-0/language/fr/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: fr\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Contract"
+msgstr "Contrat"
diff --git a/hr_contract_reference/i18n/ro.po b/hr_contract_reference/i18n/ro.po
new file mode 100644
index 00000000000..de66d93fa5a
--- /dev/null
+++ b/hr_contract_reference/i18n/ro.po
@@ -0,0 +1,23 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * hr_contract_reference
+#
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: hr (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-08-18 13:10+0000\n"
+"PO-Revision-Date: 2015-07-27 23:43+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Romanian (http://www.transifex.com/oca/OCA-hr-8-0/language/ro/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: ro\n"
+"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Contract"
+msgstr "Contract"
diff --git a/hr_contract_reference/i18n/sl.po b/hr_contract_reference/i18n/sl.po
new file mode 100644
index 00000000000..a80d86b8036
--- /dev/null
+++ b/hr_contract_reference/i18n/sl.po
@@ -0,0 +1,23 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * hr_contract_reference
+#
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: hr (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-08-18 13:10+0000\n"
+"PO-Revision-Date: 2015-08-01 15:45+0000\n"
+"Last-Translator: Matjaž Mozetič \n"
+"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-hr-8-0/language/sl/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: sl\n"
+"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Contract"
+msgstr "Pogodba"
From 53ad3029e06c9c52af31554f80ef336c31b4c1f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Bidoul?=
Date: Fri, 9 Oct 2015 10:00:20 +0200
Subject: [PATCH 14/51] prefix versions with 8.0
---
hr_contract_reference/__openerp__.py | 2 +-
hr_contract_reference/i18n/es.po | 23 +++++++++++++++++++++++
hr_contract_reference/i18n/fi.po | 23 +++++++++++++++++++++++
hr_contract_reference/i18n/it.po | 23 +++++++++++++++++++++++
hr_contract_reference/i18n/pt_BR.po | 23 +++++++++++++++++++++++
5 files changed, 93 insertions(+), 1 deletion(-)
create mode 100644 hr_contract_reference/i18n/es.po
create mode 100644 hr_contract_reference/i18n/fi.po
create mode 100644 hr_contract_reference/i18n/it.po
create mode 100644 hr_contract_reference/i18n/pt_BR.po
diff --git a/hr_contract_reference/__openerp__.py b/hr_contract_reference/__openerp__.py
index db417ca5564..31976dda2e3 100644
--- a/hr_contract_reference/__openerp__.py
+++ b/hr_contract_reference/__openerp__.py
@@ -20,7 +20,7 @@
##############################################################################
{
"name": "HR Contract Reference",
- "version": "1.0",
+ "version": "8.0.1.0.0",
"category": "Generic Modules/Human Resources",
"author": 'Michael Telahun Makonnen, '
'Fekete Mihai (Forest and Biomass Services Romania), '
diff --git a/hr_contract_reference/i18n/es.po b/hr_contract_reference/i18n/es.po
new file mode 100644
index 00000000000..0aff148b499
--- /dev/null
+++ b/hr_contract_reference/i18n/es.po
@@ -0,0 +1,23 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * hr_contract_reference
+#
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: hr (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-11-30 05:19+0000\n"
+"PO-Revision-Date: 2015-07-27 23:43+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Spanish (http://www.transifex.com/oca/OCA-hr-8-0/language/es/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: es\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Contract"
+msgstr "Contrato"
diff --git a/hr_contract_reference/i18n/fi.po b/hr_contract_reference/i18n/fi.po
new file mode 100644
index 00000000000..f5a8ed0a7ec
--- /dev/null
+++ b/hr_contract_reference/i18n/fi.po
@@ -0,0 +1,23 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * hr_contract_reference
+#
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: hr (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-04-14 04:15+0000\n"
+"PO-Revision-Date: 2016-04-04 11:09+0000\n"
+"Last-Translator: Jarmo Kortetjärvi \n"
+"Language-Team: Finnish (http://www.transifex.com/oca/OCA-hr-8-0/language/fi/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: fi\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Contract"
+msgstr "Sopimus"
diff --git a/hr_contract_reference/i18n/it.po b/hr_contract_reference/i18n/it.po
new file mode 100644
index 00000000000..fffca4bc27b
--- /dev/null
+++ b/hr_contract_reference/i18n/it.po
@@ -0,0 +1,23 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * hr_contract_reference
+#
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: hr (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-03-12 12:02+0000\n"
+"PO-Revision-Date: 2015-07-27 23:43+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Italian (http://www.transifex.com/oca/OCA-hr-8-0/language/it/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: it\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Contract"
+msgstr "Contratto"
diff --git a/hr_contract_reference/i18n/pt_BR.po b/hr_contract_reference/i18n/pt_BR.po
new file mode 100644
index 00000000000..ccc691cb970
--- /dev/null
+++ b/hr_contract_reference/i18n/pt_BR.po
@@ -0,0 +1,23 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * hr_contract_reference
+#
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: hr (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-10-20 18:46+0000\n"
+"PO-Revision-Date: 2015-07-27 23:43+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-hr-8-0/language/pt_BR/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: pt_BR\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Contract"
+msgstr "Contrato"
From 4771aa2c4cd5254c99c3036c4528b42902185a7c Mon Sep 17 00:00:00 2001
From: "Pedro M. Baeza"
Date: Tue, 5 Jul 2016 20:19:28 +0200
Subject: [PATCH 15/51] Make modules uninstallable
---
hr_contract_reference/__openerp__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hr_contract_reference/__openerp__.py b/hr_contract_reference/__openerp__.py
index 31976dda2e3..d66913a4aa7 100644
--- a/hr_contract_reference/__openerp__.py
+++ b/hr_contract_reference/__openerp__.py
@@ -32,5 +32,5 @@
'views/hr_contract_view.xml',
'data/hr_contract_sequence.xml',
],
- 'installable': True,
+ 'installable': False,
}
From 485aa68439bfda168c8a20f75c0bda5b9a3b9e6f Mon Sep 17 00:00:00 2001
From: "Pedro M. Baeza"
Date: Thu, 6 Oct 2016 14:52:24 +0200
Subject: [PATCH 16/51] Rename manifest files
---
hr_contract_reference/{__openerp__.py => __manifest__.py} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename hr_contract_reference/{__openerp__.py => __manifest__.py} (100%)
diff --git a/hr_contract_reference/__openerp__.py b/hr_contract_reference/__manifest__.py
similarity index 100%
rename from hr_contract_reference/__openerp__.py
rename to hr_contract_reference/__manifest__.py
From e50a1f9dac7808a3d6a67aa97236d19403169039 Mon Sep 17 00:00:00 2001
From: Denis Leemann
Date: Wed, 22 Feb 2017 15:26:21 +0100
Subject: [PATCH 17/51] hr_contract_reference: Migrated to 10.0
---
hr_contract_reference/README.rst | 13 +++++++--
hr_contract_reference/__init__.py | 23 ++-------------
hr_contract_reference/__manifest__.py | 27 ++++-------------
.../data/hr_contract_sequence.xml | 8 ++---
hr_contract_reference/i18n/ar.po | 24 +++++++++++++++
hr_contract_reference/i18n/cs_CZ.po | 24 +++++++++++++++
hr_contract_reference/i18n/fr.po | 13 +++++----
hr_contract_reference/i18n/hi_IN.po | 24 +++++++++++++++
hr_contract_reference/i18n/hr.po | 24 +++++++++++++++
hr_contract_reference/i18n/it.po | 15 +++++-----
hr_contract_reference/i18n/lt.po | 24 +++++++++++++++
hr_contract_reference/i18n/nl_NL.po | 24 +++++++++++++++
hr_contract_reference/models/__init__.py | 23 ++-------------
hr_contract_reference/models/hr_contract.py | 29 ++++---------------
.../views/hr_contract_view.xml | 27 ++++++++---------
15 files changed, 201 insertions(+), 121 deletions(-)
create mode 100644 hr_contract_reference/i18n/ar.po
create mode 100644 hr_contract_reference/i18n/cs_CZ.po
create mode 100644 hr_contract_reference/i18n/hi_IN.po
create mode 100644 hr_contract_reference/i18n/hr.po
create mode 100644 hr_contract_reference/i18n/lt.po
create mode 100644 hr_contract_reference/i18n/nl_NL.po
diff --git a/hr_contract_reference/README.rst b/hr_contract_reference/README.rst
index 81094bb23db..41591d0faf0 100644
--- a/hr_contract_reference/README.rst
+++ b/hr_contract_reference/README.rst
@@ -1,5 +1,6 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
- :alt: License: AGPL-3
+ :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
+ :alt: License: AGPL-3
HR Contract Reference
=====================
@@ -13,7 +14,7 @@ Installation
To install this module, you need to:
-* clone the branch 8.0 of the repository https://github.com/OCA/hr
+* clone the branch 10.0 of the repository https://github.com/OCA/hr
* add the path to this repository in your configuration (addons-path)
* update the module list
* search for "HR Contract Reference" in your addons
@@ -33,6 +34,13 @@ Usage
When you will create a new employee contract, the field reference will be
assigned automatically with the next number of the predefined sequence.
+Bug Tracker
+===========
+
+Bugs are tracked on `GitHub Issues `_.
+In case of trouble, please check there if your issue has already been reported.
+If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
+
Credits
=======
@@ -41,6 +49,7 @@ Contributors
* Michael Telahun Makonnen
* Fekete Mihai
+* Denis Leemann
Maintainer
----------
diff --git a/hr_contract_reference/__init__.py b/hr_contract_reference/__init__.py
index eac8ce4bbd6..9f9383fe71b 100644
--- a/hr_contract_reference/__init__.py
+++ b/hr_contract_reference/__init__.py
@@ -1,22 +1,5 @@
-# -*- coding:utf-8 -*-
-##############################################################################
-#
-# Copyright (C) 2011,2013 Michael Telahun Makonnen .
-# All Rights Reserved.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published
-# by the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
+# -*- coding: utf-8 -*-
+# copyright 2011,2013 Michael Telahun Makonnen
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
diff --git a/hr_contract_reference/__manifest__.py b/hr_contract_reference/__manifest__.py
index d66913a4aa7..9ce1a7b6867 100644
--- a/hr_contract_reference/__manifest__.py
+++ b/hr_contract_reference/__manifest__.py
@@ -1,26 +1,9 @@
-# -*- coding:utf-8 -*-
-##############################################################################
-#
-# Copyright (C) 2011,2013 Michael Telahun Makonnen .
-# All Rights Reserved.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published
-# by the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
+# -*- coding: utf-8 -*-
+# copyright 2011,2013 Michael Telahun Makonnen
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "HR Contract Reference",
- "version": "8.0.1.0.0",
+ "version": "10.0.1.0.0",
"category": "Generic Modules/Human Resources",
"author": 'Michael Telahun Makonnen, '
'Fekete Mihai (Forest and Biomass Services Romania), '
@@ -32,5 +15,5 @@
'views/hr_contract_view.xml',
'data/hr_contract_sequence.xml',
],
- 'installable': False,
+ 'installable': True,
}
diff --git a/hr_contract_reference/data/hr_contract_sequence.xml b/hr_contract_reference/data/hr_contract_sequence.xml
index 75d2a6b7d7c..304da0a100b 100644
--- a/hr_contract_reference/data/hr_contract_sequence.xml
+++ b/hr_contract_reference/data/hr_contract_sequence.xml
@@ -1,10 +1,6 @@
-
+
-
- Contract Reference
- contract.ref
-
Contract Reference
contract.ref
@@ -12,4 +8,4 @@
5
-
\ No newline at end of file
+
diff --git a/hr_contract_reference/i18n/ar.po b/hr_contract_reference/i18n/ar.po
new file mode 100644
index 00000000000..75113931c4a
--- /dev/null
+++ b/hr_contract_reference/i18n/ar.po
@@ -0,0 +1,24 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * hr_contract_reference
+#
+# Translators:
+# abdullah alsabi , 2017
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 10.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-06-10 04:30+0000\n"
+"PO-Revision-Date: 2017-06-10 04:30+0000\n"
+"Last-Translator: abdullah alsabi , 2017\n"
+"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: ar\n"
+"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Contract"
+msgstr "العقد"
diff --git a/hr_contract_reference/i18n/cs_CZ.po b/hr_contract_reference/i18n/cs_CZ.po
new file mode 100644
index 00000000000..7cc387eefaf
--- /dev/null
+++ b/hr_contract_reference/i18n/cs_CZ.po
@@ -0,0 +1,24 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * hr_contract_reference
+#
+# Translators:
+# Lukáš Spurný , 2018
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 10.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-02-23 03:45+0000\n"
+"PO-Revision-Date: 2018-02-23 03:45+0000\n"
+"Last-Translator: Lukáš Spurný , 2018\n"
+"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/teams/23907/cs_CZ/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: cs_CZ\n"
+"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Employee Contract"
+msgstr "Smlouva o zaměstnance"
diff --git a/hr_contract_reference/i18n/fr.po b/hr_contract_reference/i18n/fr.po
index 4a7530d9e8e..455e9ed73ff 100644
--- a/hr_contract_reference/i18n/fr.po
+++ b/hr_contract_reference/i18n/fr.po
@@ -3,14 +3,15 @@
# * hr_contract_reference
#
# Translators:
+# Alexandre Fayolle , 2018
msgid ""
msgstr ""
-"Project-Id-Version: hr (8.0)\n"
+"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-08-18 13:10+0000\n"
-"PO-Revision-Date: 2015-07-27 23:43+0000\n"
-"Last-Translator: <>\n"
-"Language-Team: French (http://www.transifex.com/oca/OCA-hr-8-0/language/fr/)\n"
+"POT-Creation-Date: 2018-02-23 03:45+0000\n"
+"PO-Revision-Date: 2018-02-23 03:45+0000\n"
+"Last-Translator: Alexandre Fayolle , 2018\n"
+"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
@@ -19,5 +20,5 @@ msgstr ""
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Contract"
+msgid "Employee Contract"
msgstr "Contrat"
diff --git a/hr_contract_reference/i18n/hi_IN.po b/hr_contract_reference/i18n/hi_IN.po
new file mode 100644
index 00000000000..2c6b7652097
--- /dev/null
+++ b/hr_contract_reference/i18n/hi_IN.po
@@ -0,0 +1,24 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * hr_contract_reference
+#
+# Translators:
+# BS Logics , 2017
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 10.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-07-29 02:20+0000\n"
+"PO-Revision-Date: 2017-07-29 02:20+0000\n"
+"Last-Translator: BS Logics , 2017\n"
+"Language-Team: Hindi (India) (https://www.transifex.com/oca/teams/23907/hi_IN/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: hi_IN\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Contract"
+msgstr "संपर्क "
diff --git a/hr_contract_reference/i18n/hr.po b/hr_contract_reference/i18n/hr.po
new file mode 100644
index 00000000000..d76f8fac0d1
--- /dev/null
+++ b/hr_contract_reference/i18n/hr.po
@@ -0,0 +1,24 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * hr_contract_reference
+#
+# Translators:
+# Bole , 2018
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 10.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-02-23 03:45+0000\n"
+"PO-Revision-Date: 2018-02-23 03:45+0000\n"
+"Last-Translator: Bole , 2018\n"
+"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: hr\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Employee Contract"
+msgstr "Ugovor zaposlenika"
diff --git a/hr_contract_reference/i18n/it.po b/hr_contract_reference/i18n/it.po
index fffca4bc27b..d19c90de9d5 100644
--- a/hr_contract_reference/i18n/it.po
+++ b/hr_contract_reference/i18n/it.po
@@ -3,14 +3,15 @@
# * hr_contract_reference
#
# Translators:
+# Marco Calcagni , 2018
msgid ""
msgstr ""
-"Project-Id-Version: hr (8.0)\n"
+"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2016-03-12 12:02+0000\n"
-"PO-Revision-Date: 2015-07-27 23:43+0000\n"
-"Last-Translator: <>\n"
-"Language-Team: Italian (http://www.transifex.com/oca/OCA-hr-8-0/language/it/)\n"
+"POT-Creation-Date: 2018-03-31 03:38+0000\n"
+"PO-Revision-Date: 2018-03-31 03:38+0000\n"
+"Last-Translator: Marco Calcagni , 2018\n"
+"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
@@ -19,5 +20,5 @@ msgstr ""
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Contract"
-msgstr "Contratto"
+msgid "Employee Contract"
+msgstr "Contratto dei dipendenti"
diff --git a/hr_contract_reference/i18n/lt.po b/hr_contract_reference/i18n/lt.po
new file mode 100644
index 00000000000..2aecd614126
--- /dev/null
+++ b/hr_contract_reference/i18n/lt.po
@@ -0,0 +1,24 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * hr_contract_reference
+#
+# Translators:
+# Viktoras Norkus , 2018
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 10.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-01-17 12:15+0000\n"
+"PO-Revision-Date: 2018-01-17 12:15+0000\n"
+"Last-Translator: Viktoras Norkus , 2018\n"
+"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: lt\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Employee Contract"
+msgstr "Darbuotojo kontraktas"
diff --git a/hr_contract_reference/i18n/nl_NL.po b/hr_contract_reference/i18n/nl_NL.po
new file mode 100644
index 00000000000..7cafd12bacf
--- /dev/null
+++ b/hr_contract_reference/i18n/nl_NL.po
@@ -0,0 +1,24 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * hr_contract_reference
+#
+# Translators:
+# Cas Vissers , 2017
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 10.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-03-28 03:17+0000\n"
+"PO-Revision-Date: 2017-03-28 03:17+0000\n"
+"Last-Translator: Cas Vissers , 2017\n"
+"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: nl_NL\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Contract"
+msgstr "Contract"
diff --git a/hr_contract_reference/models/__init__.py b/hr_contract_reference/models/__init__.py
index d6b47d95e89..00e055f6d2b 100644
--- a/hr_contract_reference/models/__init__.py
+++ b/hr_contract_reference/models/__init__.py
@@ -1,22 +1,5 @@
-# -*- coding:utf-8 -*-
-##############################################################################
-#
-# Copyright (C) 2011,2013 Michael Telahun Makonnen .
-# All Rights Reserved.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published
-# by the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
+# -*- coding: utf-8 -*-
+# copyright 2011,2013 Michael Telahun Makonnen
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import hr_contract
diff --git a/hr_contract_reference/models/hr_contract.py b/hr_contract_reference/models/hr_contract.py
index 2969d8c703e..6c65e291ed4 100644
--- a/hr_contract_reference/models/hr_contract.py
+++ b/hr_contract_reference/models/hr_contract.py
@@ -1,28 +1,11 @@
-# -*- coding:utf-8 -*-
-##############################################################################
-#
-# Copyright (C) 2011,2013 Michael Telahun Makonnen .
-# All Rights Reserved.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published
-# by the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
+# -*- coding: utf-8 -*-
+# copyright 2011,2013 Michael Telahun Makonnen
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-from openerp import models, fields, api
+from odoo import models, fields, api
-class hr_contract(models.Model):
+class HrContract(models.Model):
_inherit = 'hr.contract'
name = fields.Char('Contract Reference', required=False,
@@ -32,4 +15,4 @@ class hr_contract(models.Model):
def create(self, vals):
if vals.get('number', '/') == '/':
vals['name'] = self.env['ir.sequence'].next_by_code('contract.ref')
- return super(hr_contract, self).create(vals)
+ return super(HrContract, self).create(vals)
diff --git a/hr_contract_reference/views/hr_contract_view.xml b/hr_contract_reference/views/hr_contract_view.xml
index bf24da7648a..36363db0494 100644
--- a/hr_contract_reference/views/hr_contract_view.xml
+++ b/hr_contract_reference/views/hr_contract_view.xml
@@ -1,17 +1,14 @@
-
-
-
-
- hr.contract.form.view.inherit.ref
- hr.contract
- form
-
-
-
-
-
+
+
+ hr.contract.form.view.inherit.ref
+ hr.contract
+ form
+
+
+
+ True
-
-
-
\ No newline at end of file
+
+
+
From a92b21d7943195e9df526236bd6d795d7d50f128 Mon Sep 17 00:00:00 2001
From: oca-travis
Date: Wed, 20 Jun 2018 08:46:12 +0000
Subject: [PATCH 18/51] Update hr_contract_reference.pot
---
hr_contract_reference/i18n/ar.po | 10 ++++++----
hr_contract_reference/i18n/cs_CZ.po | 7 ++++---
hr_contract_reference/i18n/de.po | 10 ++++++----
hr_contract_reference/i18n/es.po | 10 ++++++----
hr_contract_reference/i18n/fi.po | 10 ++++++----
hr_contract_reference/i18n/fr.po | 4 ++--
hr_contract_reference/i18n/hi_IN.po | 10 ++++++----
hr_contract_reference/i18n/hr.po | 7 ++++---
.../i18n/hr_contract_reference.pot | 20 +++++++++++++++++++
hr_contract_reference/i18n/it.po | 4 ++--
hr_contract_reference/i18n/lt.po | 7 ++++---
hr_contract_reference/i18n/nl_NL.po | 10 ++++++----
hr_contract_reference/i18n/pt_BR.po | 10 ++++++----
hr_contract_reference/i18n/ro.po | 13 +++++++-----
hr_contract_reference/i18n/sl.po | 13 +++++++-----
15 files changed, 94 insertions(+), 51 deletions(-)
create mode 100644 hr_contract_reference/i18n/hr_contract_reference.pot
diff --git a/hr_contract_reference/i18n/ar.po b/hr_contract_reference/i18n/ar.po
index 75113931c4a..8da1982aadb 100644
--- a/hr_contract_reference/i18n/ar.po
+++ b/hr_contract_reference/i18n/ar.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_contract_reference
-#
+#
# Translators:
# abdullah alsabi , 2017
msgid ""
@@ -12,13 +12,15 @@ msgstr ""
"PO-Revision-Date: 2017-06-10 04:30+0000\n"
"Last-Translator: abdullah alsabi , 2017\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
+"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: ar\n"
-"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
+"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
+"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Contract"
+#, fuzzy
+msgid "Employee Contract"
msgstr "العقد"
diff --git a/hr_contract_reference/i18n/cs_CZ.po b/hr_contract_reference/i18n/cs_CZ.po
index 7cc387eefaf..7c4b649ebe1 100644
--- a/hr_contract_reference/i18n/cs_CZ.po
+++ b/hr_contract_reference/i18n/cs_CZ.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_contract_reference
-#
+#
# Translators:
# Lukáš Spurný , 2018
msgid ""
@@ -11,11 +11,12 @@ msgstr ""
"POT-Creation-Date: 2018-02-23 03:45+0000\n"
"PO-Revision-Date: 2018-02-23 03:45+0000\n"
"Last-Translator: Lukáš Spurný , 2018\n"
-"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/teams/23907/cs_CZ/)\n"
+"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/"
+"teams/23907/cs_CZ/)\n"
+"Language: cs_CZ\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: cs_CZ\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#. module: hr_contract_reference
diff --git a/hr_contract_reference/i18n/de.po b/hr_contract_reference/i18n/de.po
index 1c952e7bba4..53cd41425a7 100644
--- a/hr_contract_reference/i18n/de.po
+++ b/hr_contract_reference/i18n/de.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_contract_reference
-#
+#
# Translators:
msgid ""
msgstr ""
@@ -10,14 +10,16 @@ msgstr ""
"POT-Creation-Date: 2015-08-18 13:10+0000\n"
"PO-Revision-Date: 2015-07-27 23:43+0000\n"
"Last-Translator: <>\n"
-"Language-Team: German (http://www.transifex.com/oca/OCA-hr-8-0/language/de/)\n"
+"Language-Team: German (http://www.transifex.com/oca/OCA-hr-8-0/language/"
+"de/)\n"
+"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Contract"
+#, fuzzy
+msgid "Employee Contract"
msgstr "Vertrag"
diff --git a/hr_contract_reference/i18n/es.po b/hr_contract_reference/i18n/es.po
index 0aff148b499..206154c6734 100644
--- a/hr_contract_reference/i18n/es.po
+++ b/hr_contract_reference/i18n/es.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_contract_reference
-#
+#
# Translators:
msgid ""
msgstr ""
@@ -10,14 +10,16 @@ msgstr ""
"POT-Creation-Date: 2015-11-30 05:19+0000\n"
"PO-Revision-Date: 2015-07-27 23:43+0000\n"
"Last-Translator: <>\n"
-"Language-Team: Spanish (http://www.transifex.com/oca/OCA-hr-8-0/language/es/)\n"
+"Language-Team: Spanish (http://www.transifex.com/oca/OCA-hr-8-0/language/"
+"es/)\n"
+"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Contract"
+#, fuzzy
+msgid "Employee Contract"
msgstr "Contrato"
diff --git a/hr_contract_reference/i18n/fi.po b/hr_contract_reference/i18n/fi.po
index f5a8ed0a7ec..ed718adb30a 100644
--- a/hr_contract_reference/i18n/fi.po
+++ b/hr_contract_reference/i18n/fi.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_contract_reference
-#
+#
# Translators:
msgid ""
msgstr ""
@@ -10,14 +10,16 @@ msgstr ""
"POT-Creation-Date: 2016-04-14 04:15+0000\n"
"PO-Revision-Date: 2016-04-04 11:09+0000\n"
"Last-Translator: Jarmo Kortetjärvi \n"
-"Language-Team: Finnish (http://www.transifex.com/oca/OCA-hr-8-0/language/fi/)\n"
+"Language-Team: Finnish (http://www.transifex.com/oca/OCA-hr-8-0/language/"
+"fi/)\n"
+"Language: fi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: fi\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Contract"
+#, fuzzy
+msgid "Employee Contract"
msgstr "Sopimus"
diff --git a/hr_contract_reference/i18n/fr.po b/hr_contract_reference/i18n/fr.po
index 455e9ed73ff..c72820045c3 100644
--- a/hr_contract_reference/i18n/fr.po
+++ b/hr_contract_reference/i18n/fr.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_contract_reference
-#
+#
# Translators:
# Alexandre Fayolle , 2018
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2018-02-23 03:45+0000\n"
"Last-Translator: Alexandre Fayolle , 2018\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
+"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: hr_contract_reference
diff --git a/hr_contract_reference/i18n/hi_IN.po b/hr_contract_reference/i18n/hi_IN.po
index 2c6b7652097..c245173fc6d 100644
--- a/hr_contract_reference/i18n/hi_IN.po
+++ b/hr_contract_reference/i18n/hi_IN.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_contract_reference
-#
+#
# Translators:
# BS Logics , 2017
msgid ""
@@ -11,14 +11,16 @@ msgstr ""
"POT-Creation-Date: 2017-07-29 02:20+0000\n"
"PO-Revision-Date: 2017-07-29 02:20+0000\n"
"Last-Translator: BS Logics , 2017\n"
-"Language-Team: Hindi (India) (https://www.transifex.com/oca/teams/23907/hi_IN/)\n"
+"Language-Team: Hindi (India) (https://www.transifex.com/oca/teams/23907/"
+"hi_IN/)\n"
+"Language: hi_IN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: hi_IN\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Contract"
+#, fuzzy
+msgid "Employee Contract"
msgstr "संपर्क "
diff --git a/hr_contract_reference/i18n/hr.po b/hr_contract_reference/i18n/hr.po
index d76f8fac0d1..4599500a484 100644
--- a/hr_contract_reference/i18n/hr.po
+++ b/hr_contract_reference/i18n/hr.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_contract_reference
-#
+#
# Translators:
# Bole , 2018
msgid ""
@@ -12,11 +12,12 @@ msgstr ""
"PO-Revision-Date: 2018-02-23 03:45+0000\n"
"Last-Translator: Bole , 2018\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
+"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: hr\n"
-"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
+"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
diff --git a/hr_contract_reference/i18n/hr_contract_reference.pot b/hr_contract_reference/i18n/hr_contract_reference.pot
new file mode 100644
index 00000000000..f96ad1017e9
--- /dev/null
+++ b/hr_contract_reference/i18n/hr_contract_reference.pot
@@ -0,0 +1,20 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * hr_contract_reference
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 10.0\n"
+"Report-Msgid-Bugs-To: \n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Employee Contract"
+msgstr ""
+
diff --git a/hr_contract_reference/i18n/it.po b/hr_contract_reference/i18n/it.po
index d19c90de9d5..4871e577122 100644
--- a/hr_contract_reference/i18n/it.po
+++ b/hr_contract_reference/i18n/it.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_contract_reference
-#
+#
# Translators:
# Marco Calcagni , 2018
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2018-03-31 03:38+0000\n"
"Last-Translator: Marco Calcagni , 2018\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
+"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: hr_contract_reference
diff --git a/hr_contract_reference/i18n/lt.po b/hr_contract_reference/i18n/lt.po
index 2aecd614126..0c1959416b2 100644
--- a/hr_contract_reference/i18n/lt.po
+++ b/hr_contract_reference/i18n/lt.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_contract_reference
-#
+#
# Translators:
# Viktoras Norkus , 2018
msgid ""
@@ -12,11 +12,12 @@ msgstr ""
"PO-Revision-Date: 2018-01-17 12:15+0000\n"
"Last-Translator: Viktoras Norkus , 2018\n"
"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n"
+"Language: lt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: lt\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n"
+"%100<10 || n%100>=20) ? 1 : 2);\n"
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
diff --git a/hr_contract_reference/i18n/nl_NL.po b/hr_contract_reference/i18n/nl_NL.po
index 7cafd12bacf..5f576c04494 100644
--- a/hr_contract_reference/i18n/nl_NL.po
+++ b/hr_contract_reference/i18n/nl_NL.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_contract_reference
-#
+#
# Translators:
# Cas Vissers , 2017
msgid ""
@@ -11,14 +11,16 @@ msgstr ""
"POT-Creation-Date: 2017-03-28 03:17+0000\n"
"PO-Revision-Date: 2017-03-28 03:17+0000\n"
"Last-Translator: Cas Vissers , 2017\n"
-"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n"
+"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
+"teams/23907/nl_NL/)\n"
+"Language: nl_NL\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: nl_NL\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Contract"
+#, fuzzy
+msgid "Employee Contract"
msgstr "Contract"
diff --git a/hr_contract_reference/i18n/pt_BR.po b/hr_contract_reference/i18n/pt_BR.po
index ccc691cb970..731be2aea51 100644
--- a/hr_contract_reference/i18n/pt_BR.po
+++ b/hr_contract_reference/i18n/pt_BR.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_contract_reference
-#
+#
# Translators:
msgid ""
msgstr ""
@@ -10,14 +10,16 @@ msgstr ""
"POT-Creation-Date: 2015-10-20 18:46+0000\n"
"PO-Revision-Date: 2015-07-27 23:43+0000\n"
"Last-Translator: <>\n"
-"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-hr-8-0/language/pt_BR/)\n"
+"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-hr-8-0/"
+"language/pt_BR/)\n"
+"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: pt_BR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Contract"
+#, fuzzy
+msgid "Employee Contract"
msgstr "Contrato"
diff --git a/hr_contract_reference/i18n/ro.po b/hr_contract_reference/i18n/ro.po
index de66d93fa5a..34b2418fd62 100644
--- a/hr_contract_reference/i18n/ro.po
+++ b/hr_contract_reference/i18n/ro.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_contract_reference
-#
+#
# Translators:
msgid ""
msgstr ""
@@ -10,14 +10,17 @@ msgstr ""
"POT-Creation-Date: 2015-08-18 13:10+0000\n"
"PO-Revision-Date: 2015-07-27 23:43+0000\n"
"Last-Translator: <>\n"
-"Language-Team: Romanian (http://www.transifex.com/oca/OCA-hr-8-0/language/ro/)\n"
+"Language-Team: Romanian (http://www.transifex.com/oca/OCA-hr-8-0/language/"
+"ro/)\n"
+"Language: ro\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: ro\n"
-"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
+"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?"
+"2:1));\n"
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Contract"
+#, fuzzy
+msgid "Employee Contract"
msgstr "Contract"
diff --git a/hr_contract_reference/i18n/sl.po b/hr_contract_reference/i18n/sl.po
index a80d86b8036..675ff6408fd 100644
--- a/hr_contract_reference/i18n/sl.po
+++ b/hr_contract_reference/i18n/sl.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_contract_reference
-#
+#
# Translators:
msgid ""
msgstr ""
@@ -10,14 +10,17 @@ msgstr ""
"POT-Creation-Date: 2015-08-18 13:10+0000\n"
"PO-Revision-Date: 2015-08-01 15:45+0000\n"
"Last-Translator: Matjaž Mozetič \n"
-"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-hr-8-0/language/sl/)\n"
+"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-hr-8-0/language/"
+"sl/)\n"
+"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: sl\n"
-"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
+"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
+"%100==4 ? 2 : 3);\n"
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Contract"
+#, fuzzy
+msgid "Employee Contract"
msgstr "Pogodba"
From e973a31f154f1aa85bf6dc5920d29de5d7a53531 Mon Sep 17 00:00:00 2001
From: Vacha Trivedi
Date: Tue, 3 Jul 2018 12:42:47 +0530
Subject: [PATCH 19/51] hr_contract_reference:Migration to 11.0.
---
hr_contract_reference/README.rst | 13 +++++++++----
hr_contract_reference/__init__.py | 1 -
hr_contract_reference/__manifest__.py | 5 ++---
.../data/hr_contract_sequence.xml | 16 +++++++---------
hr_contract_reference/models/__init__.py | 1 -
hr_contract_reference/models/hr_contract.py | 5 ++---
6 files changed, 20 insertions(+), 21 deletions(-)
diff --git a/hr_contract_reference/README.rst b/hr_contract_reference/README.rst
index 41591d0faf0..65e8f987ec3 100644
--- a/hr_contract_reference/README.rst
+++ b/hr_contract_reference/README.rst
@@ -14,7 +14,7 @@ Installation
To install this module, you need to:
-* clone the branch 10.0 of the repository https://github.com/OCA/hr
+* clone the branch 11.0 of the repository https://github.com/OCA/hr
* add the path to this repository in your configuration (addons-path)
* update the module list
* search for "HR Contract Reference" in your addons
@@ -34,6 +34,10 @@ Usage
When you will create a new employee contract, the field reference will be
assigned automatically with the next number of the predefined sequence.
+.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
+ :alt: Try me on Runbot
+ :target: https://runbot.odoo-community.org/runbot/116/11.0
+
Bug Tracker
===========
@@ -50,13 +54,14 @@ Contributors
* Michael Telahun Makonnen
* Fekete Mihai
* Denis Leemann
+* Serpent Consulting Services Pvt. Ltd.
Maintainer
----------
-.. image:: http://odoo-community.org/logo.png
+.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
- :target: http://odoo-community.org
+ :target: https://odoo-community.org
This module is maintained by the OCA.
@@ -64,4 +69,4 @@ 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.
-To contribute to this module, please visit http://odoo-community.org.
+To contribute to this module, please visit https://odoo-community.org.
diff --git a/hr_contract_reference/__init__.py b/hr_contract_reference/__init__.py
index 9f9383fe71b..3c4931c40de 100644
--- a/hr_contract_reference/__init__.py
+++ b/hr_contract_reference/__init__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# copyright 2011,2013 Michael Telahun Makonnen
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
diff --git a/hr_contract_reference/__manifest__.py b/hr_contract_reference/__manifest__.py
index 9ce1a7b6867..dc50419fb14 100644
--- a/hr_contract_reference/__manifest__.py
+++ b/hr_contract_reference/__manifest__.py
@@ -1,14 +1,13 @@
-# -*- coding: utf-8 -*-
# copyright 2011,2013 Michael Telahun Makonnen
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "HR Contract Reference",
- "version": "10.0.1.0.0",
+ "version": "11.0.1.0.0",
"category": "Generic Modules/Human Resources",
"author": 'Michael Telahun Makonnen, '
'Fekete Mihai (Forest and Biomass Services Romania), '
'Odoo Community Association (OCA)',
- "website": "http://miketelahun.wordpress.com",
+ "website": "https://github.com/OCA/hr",
"license": "AGPL-3",
"depends": ["hr_contract"],
"data": [
diff --git a/hr_contract_reference/data/hr_contract_sequence.xml b/hr_contract_reference/data/hr_contract_sequence.xml
index 304da0a100b..63d7f7f33ba 100644
--- a/hr_contract_reference/data/hr_contract_sequence.xml
+++ b/hr_contract_reference/data/hr_contract_sequence.xml
@@ -1,11 +1,9 @@
-
-
-
- Contract Reference
- contract.ref
- EC/%(year)s/
- 5
-
-
+
+
+ Contract Reference
+ contract.ref
+ EC/%(year)s/
+ 5
+
diff --git a/hr_contract_reference/models/__init__.py b/hr_contract_reference/models/__init__.py
index 00e055f6d2b..7f1ec38bc5b 100644
--- a/hr_contract_reference/models/__init__.py
+++ b/hr_contract_reference/models/__init__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# copyright 2011,2013 Michael Telahun Makonnen
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
diff --git a/hr_contract_reference/models/hr_contract.py b/hr_contract_reference/models/hr_contract.py
index 6c65e291ed4..26b7e8ce9ad 100644
--- a/hr_contract_reference/models/hr_contract.py
+++ b/hr_contract_reference/models/hr_contract.py
@@ -1,8 +1,7 @@
-# -*- coding: utf-8 -*-
# copyright 2011,2013 Michael Telahun Makonnen
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-from odoo import models, fields, api
+from odoo import api, fields, models
class HrContract(models.Model):
@@ -13,6 +12,6 @@ class HrContract(models.Model):
@api.model
def create(self, vals):
- if vals.get('number', '/') == '/':
+ if vals.get('name', '/') == '/':
vals['name'] = self.env['ir.sequence'].next_by_code('contract.ref')
return super(HrContract, self).create(vals)
From 4d539d1ecb4a0bf73a1f47849a5e23bf9c9b56a8 Mon Sep 17 00:00:00 2001
From: oca-travis
Date: Thu, 11 Oct 2018 19:38:10 +0000
Subject: [PATCH 20/51] Update hr_contract_reference.pot
---
hr_contract_reference/i18n/hr_contract_reference.pot | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hr_contract_reference/i18n/hr_contract_reference.pot b/hr_contract_reference/i18n/hr_contract_reference.pot
index f96ad1017e9..7254f73aec0 100644
--- a/hr_contract_reference/i18n/hr_contract_reference.pot
+++ b/hr_contract_reference/i18n/hr_contract_reference.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
From 6b49c6013976941ac65e06915b66de2eefd8d8f1 Mon Sep 17 00:00:00 2001
From: Maria Sparenberg
Date: Mon, 17 Dec 2018 15:24:15 +0000
Subject: [PATCH 21/51] Translated using Weblate (German)
Currently translated at 100.0% (1 of 1 strings)
Translation: hr-11.0/hr-11.0-hr_contract_reference
Translate-URL: https://translation.odoo-community.org/projects/hr-11-0/hr-11-0-hr_contract_reference/de/
---
hr_contract_reference/i18n/de.po | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/hr_contract_reference/i18n/de.po b/hr_contract_reference/i18n/de.po
index 53cd41425a7..e1f1e1d2884 100644
--- a/hr_contract_reference/i18n/de.po
+++ b/hr_contract_reference/i18n/de.po
@@ -8,18 +8,18 @@ msgstr ""
"Project-Id-Version: hr (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-08-18 13:10+0000\n"
-"PO-Revision-Date: 2015-07-27 23:43+0000\n"
-"Last-Translator: <>\n"
-"Language-Team: German (http://www.transifex.com/oca/OCA-hr-8-0/language/"
-"de/)\n"
+"PO-Revision-Date: 2018-12-18 13:07+0000\n"
+"Last-Translator: Maria Sparenberg \n"
+"Language-Team: German (http://www.transifex.com/oca/OCA-hr-8-0/language/de/)"
+"\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"X-Generator: Weblate 3.3\n"
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
-#, fuzzy
msgid "Employee Contract"
-msgstr "Vertrag"
+msgstr "Arbeitsvertrag"
From 5a2a1344e05505f1bc32de35985432f103bdef5f Mon Sep 17 00:00:00 2001
From: Nikul-Chaudhary
Date: Sun, 20 Jan 2019 23:56:58 +0530
Subject: [PATCH 22/51] [MIG] hr_contract_reference v11 to v12
---
hr_contract_reference/README.rst | 70 ++-
hr_contract_reference/__init__.py | 1 -
hr_contract_reference/__manifest__.py | 2 +-
.../data/hr_contract_sequence.xml | 2 +
hr_contract_reference/models/__init__.py | 1 -
hr_contract_reference/models/hr_contract.py | 9 +-
hr_contract_reference/readme/CONFIGURE.rst | 4 +
hr_contract_reference/readme/CONTRIBUTORS.rst | 5 +
hr_contract_reference/readme/DESCRIPTION.rst | 3 +
hr_contract_reference/readme/USAGE.rst | 2 +
.../static/description/index.html | 440 ++++++++++++++++++
hr_contract_reference/tests/__init__.py | 1 +
.../tests/test_contract_reference.py | 18 +
13 files changed, 529 insertions(+), 29 deletions(-)
create mode 100644 hr_contract_reference/readme/CONFIGURE.rst
create mode 100644 hr_contract_reference/readme/CONTRIBUTORS.rst
create mode 100644 hr_contract_reference/readme/DESCRIPTION.rst
create mode 100644 hr_contract_reference/readme/USAGE.rst
create mode 100644 hr_contract_reference/static/description/index.html
create mode 100644 hr_contract_reference/tests/__init__.py
create mode 100644 hr_contract_reference/tests/test_contract_reference.py
diff --git a/hr_contract_reference/README.rst b/hr_contract_reference/README.rst
index 65e8f987ec3..87025f520e4 100644
--- a/hr_contract_reference/README.rst
+++ b/hr_contract_reference/README.rst
@@ -1,24 +1,38 @@
-.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
- :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
- :alt: License: AGPL-3
-
+=====================
HR Contract Reference
=====================
+.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! This file is generated by oca-gen-addon-readme !!
+ !! changes will be overwritten. !!
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
+ :target: https://odoo-community.org/page/development-status
+ :alt: Beta
+.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
+ :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/12.0/hr_contract_reference
+ :alt: OCA/hr
+.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
+ :target: https://translation.odoo-community.org/projects/hr-12-0/hr-12-0-hr_contract_reference
+ :alt: Translate me on Weblate
+.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
+ :target: https://runbot.odoo-community.org/runbot/116/12.0
+ :alt: Try me on Runbot
+
+|badge1| |badge2| |badge3| |badge4| |badge5|
+
This module was written to extend the functionality of employees contracts
to support sequence of contract reference which will be generated
automatically from the sequence predefined.
-Installation
-============
-
-To install this module, you need to:
+**Table of contents**
-* clone the branch 11.0 of the repository https://github.com/OCA/hr
-* add the path to this repository in your configuration (addons-path)
-* update the module list
-* search for "HR Contract Reference" in your addons
-* install the module
+.. contents::
+ :local:
Configuration
=============
@@ -34,39 +48,47 @@ Usage
When you will create a new employee contract, the field reference will be
assigned automatically with the next number of the predefined sequence.
-.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
- :alt: Try me on Runbot
- :target: https://runbot.odoo-community.org/runbot/116/11.0
-
Bug Tracker
===========
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
-If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
+If you spotted it first, help us smashing it by providing a detailed and welcomed
+`feedback `_.
+
+Do not contact contributors directly about support or help with technical issues.
Credits
=======
+Authors
+~~~~~~~
+
+* Michael Telahun Makonnen
+* Fekete Mihai (Forest and Biomass Services Romania)
+
Contributors
-------------
+~~~~~~~~~~~~
* Michael Telahun Makonnen
* Fekete Mihai
* Denis Leemann
* Serpent Consulting Services Pvt. Ltd.
+* Nikul Chaudhary
+
+Maintainers
+~~~~~~~~~~~
-Maintainer
-----------
+This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
-This module is maintained by the OCA.
-
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.
-To contribute to this module, please visit https://odoo-community.org.
+This module is part of the `OCA/hr `_ project on GitHub.
+
+You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/hr_contract_reference/__init__.py b/hr_contract_reference/__init__.py
index 3c4931c40de..83e553ac462 100644
--- a/hr_contract_reference/__init__.py
+++ b/hr_contract_reference/__init__.py
@@ -1,4 +1,3 @@
-# copyright 2011,2013 Michael Telahun Makonnen
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
diff --git a/hr_contract_reference/__manifest__.py b/hr_contract_reference/__manifest__.py
index dc50419fb14..065b24f25e3 100644
--- a/hr_contract_reference/__manifest__.py
+++ b/hr_contract_reference/__manifest__.py
@@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "HR Contract Reference",
- "version": "11.0.1.0.0",
+ "version": "12.0.1.0.0",
"category": "Generic Modules/Human Resources",
"author": 'Michael Telahun Makonnen, '
'Fekete Mihai (Forest and Biomass Services Romania), '
diff --git a/hr_contract_reference/data/hr_contract_sequence.xml b/hr_contract_reference/data/hr_contract_sequence.xml
index 63d7f7f33ba..8d23459174d 100644
--- a/hr_contract_reference/data/hr_contract_sequence.xml
+++ b/hr_contract_reference/data/hr_contract_sequence.xml
@@ -1,9 +1,11 @@
+
Contract Reference
contract.ref
EC/%(year)s/
5
+
diff --git a/hr_contract_reference/models/__init__.py b/hr_contract_reference/models/__init__.py
index 7f1ec38bc5b..403d63716cb 100644
--- a/hr_contract_reference/models/__init__.py
+++ b/hr_contract_reference/models/__init__.py
@@ -1,4 +1,3 @@
-# copyright 2011,2013 Michael Telahun Makonnen
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import hr_contract
diff --git a/hr_contract_reference/models/hr_contract.py b/hr_contract_reference/models/hr_contract.py
index 26b7e8ce9ad..114312b15f8 100644
--- a/hr_contract_reference/models/hr_contract.py
+++ b/hr_contract_reference/models/hr_contract.py
@@ -7,8 +7,13 @@
class HrContract(models.Model):
_inherit = 'hr.contract'
- name = fields.Char('Contract Reference', required=False,
- readonly=True, copy=False, default='/')
+ name = fields.Char(
+ 'Contract Reference',
+ required=False,
+ readonly=True,
+ copy=False,
+ default='/'
+ )
@api.model
def create(self, vals):
diff --git a/hr_contract_reference/readme/CONFIGURE.rst b/hr_contract_reference/readme/CONFIGURE.rst
new file mode 100644
index 00000000000..8295525e3fb
--- /dev/null
+++ b/hr_contract_reference/readme/CONFIGURE.rst
@@ -0,0 +1,4 @@
+If you want to modify the format of the sequence, go to
+Settings -> Technical -> Sequences & Identifiers -> Sequences
+and search for the "Contract Reference" sequence, where you modify
+its prefix and numbering formats.
diff --git a/hr_contract_reference/readme/CONTRIBUTORS.rst b/hr_contract_reference/readme/CONTRIBUTORS.rst
new file mode 100644
index 00000000000..30299fce583
--- /dev/null
+++ b/hr_contract_reference/readme/CONTRIBUTORS.rst
@@ -0,0 +1,5 @@
+* Michael Telahun Makonnen
+* Fekete Mihai
+* Denis Leemann
+* Serpent Consulting Services Pvt. Ltd.
+* Nikul Chaudhary
diff --git a/hr_contract_reference/readme/DESCRIPTION.rst b/hr_contract_reference/readme/DESCRIPTION.rst
new file mode 100644
index 00000000000..72c1b46c48f
--- /dev/null
+++ b/hr_contract_reference/readme/DESCRIPTION.rst
@@ -0,0 +1,3 @@
+This module was written to extend the functionality of employees contracts
+to support sequence of contract reference which will be generated
+automatically from the sequence predefined.
\ No newline at end of file
diff --git a/hr_contract_reference/readme/USAGE.rst b/hr_contract_reference/readme/USAGE.rst
new file mode 100644
index 00000000000..1a690b0ce6e
--- /dev/null
+++ b/hr_contract_reference/readme/USAGE.rst
@@ -0,0 +1,2 @@
+When you will create a new employee contract, the field reference will be
+assigned automatically with the next number of the predefined sequence.
diff --git a/hr_contract_reference/static/description/index.html b/hr_contract_reference/static/description/index.html
new file mode 100644
index 00000000000..1a1a096e8ad
--- /dev/null
+++ b/hr_contract_reference/static/description/index.html
@@ -0,0 +1,440 @@
+
+
+
+
+
+
+HR Contract Reference
+
+
+
+
+
HR Contract Reference
+
+
+

+
This module was written to extend the functionality of employees contracts
+to support sequence of contract reference which will be generated
+automatically from the sequence predefined.
+
Table of contents
+
+
+
+
If you want to modify the format of the sequence, go to
+Settings -> Technical -> Sequences & Identifiers -> Sequences
+and search for the “Contract Reference” sequence, where you modify
+its prefix and numbering formats.
+
+
+
+
When you will create a new employee contract, the field reference will be
+assigned automatically with the next number of the predefined sequence.
+
+
+
+
Bugs are tracked on GitHub Issues.
+In case of trouble, please check there if your issue has already been reported.
+If you spotted it first, help us smashing it by providing a detailed and welcomed
+feedback.
+
Do not contact contributors directly about support or help with technical issues.
+
+
+
+
+
+
+- Michael Telahun Makonnen
+- Fekete Mihai (Forest and Biomass Services Romania)
+
+
+
+
+
+
This module is maintained by the OCA.
+

+
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 project on GitHub.
+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
+
+
+
+
+
diff --git a/hr_contract_reference/tests/__init__.py b/hr_contract_reference/tests/__init__.py
new file mode 100644
index 00000000000..38a60d76ae2
--- /dev/null
+++ b/hr_contract_reference/tests/__init__.py
@@ -0,0 +1 @@
+from . import test_contract_reference
diff --git a/hr_contract_reference/tests/test_contract_reference.py b/hr_contract_reference/tests/test_contract_reference.py
new file mode 100644
index 00000000000..8d3b996ea45
--- /dev/null
+++ b/hr_contract_reference/tests/test_contract_reference.py
@@ -0,0 +1,18 @@
+# Copyright 2020 Creu Blanca
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
+
+from odoo.tests.common import TransactionCase
+
+
+class TestContractReference(TransactionCase):
+
+ def setUp(self):
+ super(TestContractReference, self).setUp()
+ self.employee = self.env['hr.employee'].create({'name': 'Emp'})
+
+ def test_contract_reference(self):
+ contract = self.employee = self.env['hr.contract'].create({
+ 'employee_id': self.employee.id,
+ 'wage': 1000
+ })
+ self.assertNotEqual(contract.name, '/')
From f116b1ed60981bf8d5e81b2838f2a1b9bf683ba8 Mon Sep 17 00:00:00 2001
From: oca-travis
Date: Thu, 8 Oct 2020 14:34:31 +0000
Subject: [PATCH 23/51] [UPD] Update hr_contract_reference.pot
---
hr_contract_reference/i18n/hr_contract_reference.pot | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/hr_contract_reference/i18n/hr_contract_reference.pot b/hr_contract_reference/i18n/hr_contract_reference.pot
index 7254f73aec0..12802df07ae 100644
--- a/hr_contract_reference/i18n/hr_contract_reference.pot
+++ b/hr_contract_reference/i18n/hr_contract_reference.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 11.0\n"
+"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
@@ -13,6 +13,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name
+msgid "Contract Reference"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
msgid "Employee Contract"
From 1fc756f78002a674e1269f18ce2783052e10583a Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Thu, 8 Oct 2020 15:06:40 +0000
Subject: [PATCH 24/51] [UPD] README.rst
---
hr_contract_reference/static/description/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hr_contract_reference/static/description/index.html b/hr_contract_reference/static/description/index.html
index 1a1a096e8ad..41d944bc79b 100644
--- a/hr_contract_reference/static/description/index.html
+++ b/hr_contract_reference/static/description/index.html
@@ -3,7 +3,7 @@
-
+
HR Contract Reference
-
-
HR Contract Reference
+
+
+
+
+
+
+
HR Contract Reference
-

+

This module was written to extend the functionality of employees
contracts to support sequence of contract reference which will be
generated automatically from the sequence predefined.
@@ -388,20 +393,20 @@
HR Contract Reference
-
+
If you want to modify the format of the sequence, go to Settings ->
Technical -> Sequences & Identifiers -> Sequences and search for the
“Contract Reference” sequence, where you modify its prefix and numbering
formats.
-
+
When you will create a new employee contract, the field reference will
be assigned automatically with the next number of the predefined
sequence.
-
+
Bugs are tracked on GitHub 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
@@ -409,16 +414,16 @@
Do not contact contributors directly about support or help with technical issues.
-
+
-
+
- Michael Telahun Makonnen
- Fekete Mihai (Forest and Biomass Services Romania)
-
+
This module is maintained by the OCA.
@@ -441,5 +446,6 @@
+
From 4a477b32d0ce56bf1c50be22aa7d01baba3de2cb Mon Sep 17 00:00:00 2001
From: mymage
Date: Mon, 28 Jul 2025 06:58:01 +0000
Subject: [PATCH 50/51] Translated using Weblate (Italian)
Currently translated at 100.0% (2 of 2 strings)
Translation: hr-18.0/hr-18.0-hr_contract_reference
Translate-URL: https://translation.odoo-community.org/projects/hr-18-0/hr-18-0-hr_contract_reference/it/
---
hr_contract_reference/i18n/it.po | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/hr_contract_reference/i18n/it.po b/hr_contract_reference/i18n/it.po
index df01dbe9a0b..7abea60b345 100644
--- a/hr_contract_reference/i18n/it.po
+++ b/hr_contract_reference/i18n/it.po
@@ -9,24 +9,25 @@ msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-31 03:38+0000\n"
-"PO-Revision-Date: 2018-03-31 03:38+0000\n"
-"Last-Translator: Marco Calcagni , 2018\n"
+"PO-Revision-Date: 2025-07-28 07:24+0000\n"
+"Last-Translator: mymage \n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"X-Generator: Weblate 5.10.4\n"
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
msgid "Contract"
-msgstr ""
+msgstr "Contratto"
#. module: hr_contract_reference
#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name
msgid "Contract Reference"
-msgstr ""
+msgstr "Riferimento contratto"
#~ msgid "Employee Contract"
#~ msgstr "Contratto dei dipendenti"
From bd102db5d1cf1e98861ef3032f0d22a920c24d42 Mon Sep 17 00:00:00 2001
From: Bhavesh Heliconia
Date: Mon, 22 Dec 2025 15:00:07 +0530
Subject: [PATCH 51/51] [MIG] hr_contract_reference: Migration to 19.0
---
hr_contract_reference/README.rst | 13 ++++++++-----
hr_contract_reference/__manifest__.py | 4 ++--
hr_contract_reference/models/hr_contract.py | 4 ++--
hr_contract_reference/readme/CONTRIBUTORS.md | 2 ++
hr_contract_reference/static/description/index.html | 10 +++++++---
.../tests/test_contract_reference.py | 5 ++---
6 files changed, 23 insertions(+), 15 deletions(-)
diff --git a/hr_contract_reference/README.rst b/hr_contract_reference/README.rst
index 2eeea11719e..6043866ed94 100644
--- a/hr_contract_reference/README.rst
+++ b/hr_contract_reference/README.rst
@@ -21,13 +21,13 @@ HR Contract Reference
: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/18.0/hr_contract_reference
+ :target: https://github.com/OCA/hr/tree/19.0/hr_contract_reference
:alt: OCA/hr
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/hr-18-0/hr-18-0-hr_contract_reference
+ :target: https://translation.odoo-community.org/projects/hr-19-0/hr-19-0-hr_contract_reference
: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=18.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=19.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -62,7 +62,7 @@ Bug Tracker
Bugs are tracked on `GitHub 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -83,6 +83,9 @@ Contributors
- Denis Leemann
- Serpent Consulting Services Pvt. Ltd.
- Nikul Chaudhary
+- `Heliconia Solutions Pvt. Ltd. `__
+
+ - Bhavesh Heliconia
Maintainers
-----------
@@ -97,6 +100,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 `_ project on GitHub.
+This module is part of the `OCA/hr `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/hr_contract_reference/__manifest__.py b/hr_contract_reference/__manifest__.py
index 2614b7ff4d5..a5fb48904a4 100644
--- a/hr_contract_reference/__manifest__.py
+++ b/hr_contract_reference/__manifest__.py
@@ -2,14 +2,14 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "HR Contract Reference",
- "version": "18.0.1.0.0",
+ "version": "19.0.1.0.0",
"category": "Generic Modules/Human Resources",
"author": "Michael Telahun Makonnen, "
"Fekete Mihai (Forest and Biomass Services Romania), "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/hr",
"license": "AGPL-3",
- "depends": ["hr_contract"],
+ "depends": ["hr"],
"data": ["data/hr_contract_sequence.xml"],
"installable": True,
}
diff --git a/hr_contract_reference/models/hr_contract.py b/hr_contract_reference/models/hr_contract.py
index b73c827e52f..98b36f80b52 100644
--- a/hr_contract_reference/models/hr_contract.py
+++ b/hr_contract_reference/models/hr_contract.py
@@ -4,8 +4,8 @@
from odoo import api, fields, models
-class HrContract(models.Model):
- _inherit = "hr.contract"
+class HrVersion(models.Model):
+ _inherit = "hr.version"
name = fields.Char(
"Contract Reference", required=False, readonly=True, copy=False, default="/"
diff --git a/hr_contract_reference/readme/CONTRIBUTORS.md b/hr_contract_reference/readme/CONTRIBUTORS.md
index 4664edad3fd..9e42248fcd5 100644
--- a/hr_contract_reference/readme/CONTRIBUTORS.md
+++ b/hr_contract_reference/readme/CONTRIBUTORS.md
@@ -3,3 +3,5 @@
- Denis Leemann \<\>
- Serpent Consulting Services Pvt. Ltd. \<\>
- Nikul Chaudhary \<\>
+- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
+ - Bhavesh Heliconia
diff --git a/hr_contract_reference/static/description/index.html b/hr_contract_reference/static/description/index.html
index 6c8d283392c..178b4aaf9d4 100644
--- a/hr_contract_reference/static/description/index.html
+++ b/hr_contract_reference/static/description/index.html
@@ -374,7 +374,7 @@ HR Contract Reference
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:dccba71ae4b648f5f9fa5ba390a6d20ea0d734f9b0954df3bfb30b5525754493
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

This module was written to extend the functionality of employees
contracts to support sequence of contract reference which will be
generated automatically from the sequence predefined.
@@ -410,7 +410,7 @@
Bugs are tracked on GitHub 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.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -441,7 +445,7 @@
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 project on GitHub.
+
This module is part of the OCA/hr project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/hr_contract_reference/tests/test_contract_reference.py b/hr_contract_reference/tests/test_contract_reference.py
index f9dc6c1886c..d91a97dfc07 100644
--- a/hr_contract_reference/tests/test_contract_reference.py
+++ b/hr_contract_reference/tests/test_contract_reference.py
@@ -10,7 +10,6 @@ def setUp(self):
self.employee = self.env["hr.employee"].create({"name": "Emp"})
def test_contract_reference(self):
- contract = self.env["hr.contract"].create(
- {"employee_id": self.employee.id, "wage": 1000}
- )
+ contract = self.employee.version_id
+ contract.write({"wage": 1000})
self.assertNotEqual(contract.name, "/")