From ae6ff76f5a207b5b44db53e39d48f8ef5660f9cf Mon Sep 17 00:00:00 2001
From: Michael Telahun Makonnen
Date: Mon, 12 Aug 2013 12:07:07 +0300
Subject: [PATCH 01/31] 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 23e90f1c8731e28af700148aeec413a06b735f14 Mon Sep 17 00:00:00 2001
From: Maxime Chambreuil
Date: Mon, 23 Sep 2013 09:55:07 -0400
Subject: [PATCH 02/31] 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 9d4a7d502029a929e550b6ac1ee69b25071906da Mon Sep 17 00:00:00 2001
From: Daniel Reis
Date: Tue, 16 Sep 2014 16:51:50 +0100
Subject: [PATCH 03/31] 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 6a7b0ae3ab49aad017b84c26ab8a69544b917ae1 Mon Sep 17 00:00:00 2001
From: Fekete Mihai
Date: Tue, 21 Apr 2015 10:24:12 +0300
Subject: [PATCH 04/31] 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 43015d908d6fcfc23888db6da401e06181685026 Mon Sep 17 00:00:00 2001
From: Fekete Mihai
Date: Tue, 21 Apr 2015 10:27:34 +0300
Subject: [PATCH 05/31] 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/31] 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 76978adc9dccafa21c7609d9a04dcee18c479bf5 Mon Sep 17 00:00:00 2001
From: Fekete Mihai
Date: Tue, 21 Apr 2015 11:05:45 +0300
Subject: [PATCH 07/31] 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 5c00a270f0ae6c01c5565dadc1b63bd79c4179e7 Mon Sep 17 00:00:00 2001
From: Fekete Mihai
Date: Tue, 21 Apr 2015 11:26:30 +0300
Subject: [PATCH 08/31] 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/31] 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 364a4282351534a7dc4f41c620afdf06b08fc1c2 Mon Sep 17 00:00:00 2001
From: Fekete Mihai
Date: Tue, 21 Apr 2015 12:30:23 +0300
Subject: [PATCH 10/31] 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 7bf7a63d6f8f3e509ee44ba2c1ff64bd4ee3450e Mon Sep 17 00:00:00 2001
From: Fekete Mihai
Date: Wed, 22 Apr 2015 07:52:18 +0300
Subject: [PATCH 11/31] 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 5559c500086ecc39ae80f0d482f450ef941bc861 Mon Sep 17 00:00:00 2001
From: Yannick Vaucher
Date: Tue, 18 Aug 2015 11:16:12 +0200
Subject: [PATCH 12/31] Add missing default oca icons
---
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 ++++++++++++++++++
.../static/description/icon.png | Bin 0 -> 9455 bytes
5 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
create mode 100644 hr_contract_reference/static/description/icon.png
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"
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)nhMa-K@JS}2krK~n8vJ=Ngm?R!9G<~RyuU0d?nz#
z-5EK$o(!F?hmX*2Yt6+coY`6jGbb7tF#6nHA
zuKk=GGJ;ZwON1iAfG$E#Y7MnZVmrY|j0eVI(DN_MNFJmyZ|;w4tf@=CCDZ#5N_0K=
z$;R~bbk?}TpfDjfB&aiQ$VA}s?P}xPERJG{kxk5~R`iRS(SK5d+Xs9swCozZISbnS
zk!)I0>t=A<-^z(cmSFz3=jZ23u13X><0b)P)^1T_))Kr`e!-pb#q&J*Q`p+B6la%C
zuVl&0duN<;uOsB3%T9Fp8t{ED108)`y_~Hnd9AUX7h-H?jVuU|}My+C=TjH(jKz
zqMVr0re3S$H@t{zI95qa)+Crz*5Zj}Ao%4Z><+W(nOZd?gDnfNBC3>M8WE61$So|P
zVvqH0SNtDTcsUdzaMDpT=Ty0pDHHNL@Z0w$Y`XO
z2M-_r1S+GaH%pz#Uy0*w$Vdl=X=rQXEzO}d6J^R6zjM1u&c9vYLvLp?W7w(?np9x1
zE_0JSAJCPB%i7p*Wvg)pn5T`8k3-uR?*NT|J`eS#_#54p>!p(mLDvmc-3o0mX*mp_
zN*AeS<>#^-{S%W<*mz^!X$w_2dHWpcJ6^j64qFBft-o}o_Vx80o0>}Du;>kLts;$8
zC`7q$QI(dKYG`Wa8#wl@V4jVWBRGQ@1dr-hstpQL)Tl+aqVpGpbSfN>5i&QMXfiZ>
zaA?T1VGe?rpQ@;+pkrVdd{klI&jVS@I5_iz!=UMpTsa~mBga?1r}aRBm1WS;TT*s0f0lY=JBl66Upy)-k4J}lh=P^8(SXk~0xW=T9v*B|gzIhN
z>qsO7dFd~mgxAy4V?&)=5ieYq?zi?ZEoj)&2o)RLy=@hbCRcfT5jigwtQGE{L*8<@Yd{zg;CsL5mvzfDY}P-wos_6PfprFVaeqNE%h
zKZhLtcQld;ZD+>=nqN~>GvROfueSzJD&BE*}XfU|H&(FssBqY=hPCt`d
zH?@s2>I(|;fcW&YM6#V#!kUIP8$Nkdh0A(bEVj``-AAyYgwY~jB
zT|I7Bf@%;7aL7Wf4dZ%VqF$eiaC38OV6oy3Z#TER2G+fOCd9Iaoy6aLYbPTN{XRPz
z;U!V|vBf%H!}52L2gH_+j;`bTcQRXB+y9onc^wLm5wi3-Be}U>k_u>2Eg$=k!(l@I
zcCg+flakT2Nej3i0yn+g+}%NYb?ta;R?(g5SnwsQ49U8Wng8d|{B+lyRcEDvR3+`O{zfmrmvFrL6acVP%yG98X
zo&+VBg@px@i)%o?dG(`T;n*$S5*rnyiR#=wW}}GsAcfyQpE|>a{=$Hjg=-*_K;UtD
z#z-)AXwSRY?OPefw^iI+
z)AXz#PfEjlwTes|_{sB?4(O@fg0AJ^g8gP}ex9Ucf*@_^J(s_5jJV}c)s$`Myn|Kd
z$6>}#q^n{4vN@+Os$m7KV+`}c%4)4pv@06af4-x5#wj!KKb%caK{A&Y#Rfs
z-po?Dcb1({W=6FKIUirH&(yg=*6aLCekcKwyfK^JN5{wcA3nhO(o}SK#!CINhI`-I
z1)6&n7O&ZmyFMuNwvEic#IiOAwNkR=u5it{B9n2sAJV5pNhar=j5`*N!Na;c7g!l$
z3aYBqUkqqTJ=Re-;)s!EOeij=7SQZ3Hq}ZRds%IM*PtM$wV
z@;rlc*NRK7i3y5BETSKuumEN`Xu_8GP1Ri=OKQ$@I^ko8>H6)4rjiG5{VBM>B|%`&&s^)jS|-_95&yc=GqjNo{zFkw%%HHhS~e=s
zD#sfS+-?*t|J!+ozP6KvtOl!R)@@-z24}`9{QaVLD^9VCSR2b`b!KC#o;Ki<+wXB6
zx3&O0LOWcg4&rv4QG0)4yb}7BFSEg~=IR5#ZRj8kg}dS7_V&^%#Do==#`u
zpy6{ox?jWuR(;pg+f@mT>#HGWHAJRRDDDv~@(IDw&R>9643kK#HN`!1vBJHnC+RM&yIh8{gG2q
zA%e*U3|N0XSRa~oX-3EAneep)@{h2vvd3Xvy$7og(sayr@95+e6~Xvi1tUqnIxoIH
zVWo*OwYElb#uyW{Imam6f2rGbjR!Y3`#gPqkv57dB6K^wRGxc9B(t|aYDGS=m$&S!NmCtrMMaUg(c
zc2qC=2Z`EEFMW-me5B)24AqF*bV5Dr-M5ig(l-WPS%CgaPzs6p_gnCIvTJ=Y<6!gT
zVt@AfYCzjjsMEGi=rDQHo0yc;HqoRNnNFeWZgcm?f;cp(6CNylj36DoL(?TS7eU#+
z7&mfr#y))+CJOXQKUMZ7QIdS9@#-}7y2K1{8)cCt0~-X0O!O?Qx#E4Og+;A2SjalQ
zs7r?qn0H044=sDN$SRG$arw~n=+T_DNdSrarmu)V6@|?1-ZB#hRn`uilTGPJ@fqEy
zGt(f0B+^JDP&f=r{#Y_wi#AVDf-y!RIXU^0jXsFpf>=Ji*TeqSY!H~AMbJdCGLhC)
zn7Rx+sXw6uYj;WRYrLd^5IZq@6JI1C^YkgnedZEYy<&4(z%Q$5yv#Boo{AH8n$a
zhb4Y3PWdr269&?V%uI$xMcUrMzl=;w<_nm*qr=c3Rl@i5wWB;e-`t7D&c-mcQl7x!
zZWB`UGcw=Y2=}~wzrfLx=uet<;m3~=8I~ZRuzvMQUQdr+yTV|ATf1Uuomr__nDf=X
zZ3WYJtHp_ri(}SQAPjv+Y+0=fH4krOP@S&=zZ-t1jW1o@}z;xk8
z(Nz1co&El^HK^NrhVHa-_;&88vTU>_J33=%{if;BEY*J#1n59=07jrGQ#IP>@u#3A
z;!q+E1Rj3ZJ+!4bq9F8PXJ@yMgZL;>&gYA0%_Kbi8?S=XGM~dnQZQ!yBSgcZhY96H
zrWnU;k)qy`rX&&xlDyA%(a1Hhi5CWkmg(`Gb%m(HKi-7Z!LKGRP_B8@`7&hdDy5n=
z`OIxqxiVfX@OX1p(mQu>0Ai*v_cTMiw4qRt3~NBvr9oBy0)r>w3p~V0SCm=An6@3n)>@z!|o-$HvDK
z|3D2ZMJkLE5loMKl6R^ez@Zz%S$&mbeoqH5`Bb){Ei21q&VP)hWS2tjShfFtGE+$z
zzCR$P#uktu+#!w)cX!lWN1XU%K-r=s{|j?)Akf@q#3b#{6cZCuJ~gCxuMXRmI$nGtnH+-h
z+GEi!*X=AP<|fG`1>MBdTb?28JYc=fGvAi2I<$B(rs$;eoJCyR6_bc~p!XR@O-+sD
z=eH`-ye})I5ic1eL~TDmtfJ|8`0VJ*Yr=hNCd)G1p2MMz4C3^Mj?7;!w|Ly%JqmuW
zlIEW^Ft%z?*|fpXda>Jr^1noFZEwFgVV%|*XhH@acv8rdGxeEX{M$(vG{Zw+x(ei@
zmfXb22}8-?Fi`vo-YVrTH*C?a8%M=Hv9MqVH7H^J$KsD?>!SFZ;ZsvnHr_gn=7acz
z#W?0eCdVhVMWN12VV^$>WlQ?f;P^{(&pYTops|btm6aj>_Uz+hqpGwB)vWp0Cf5y<
zft8-je~nn?W11plq}N)4A{l8I7$!ks_x$PXW-2XaRFswX_BnF{R#6YIwMhAgd5F9X
zGmwdadS6(a^fjHtXg8=l?Rc0Sm%hk6E9!5cLVloEy4eh(=FwgP`)~I^5~pBEWo+F6
zSf2ncyMurJN91#cJTy_u8Y}@%!bq1RkGC~-bV@SXRd4F{R-*V`bS+6;W5vZ(&+I<9$;-V|eNfLa5n-6%
z2(}&uGRF;p92eS*sE*oR$@pexaqr*meB)VhmIg@h{uzkk$9~qh#cHhw#>O%)b@+(|
z^IQgqzuj~Sk(J;swEM-3TrJAPCq9k^^^`q{IItKBRXYe}e0Tdr=Huf7da3$l4PdpwWDop%^}n;dD#K4s#DYA8SHZ
z&1!riV4W4R7R#C))JH1~axJ)RYnM$$lIR%6fIVA@zV{XVyx}C+a-Dt8Y9M)^KU0+H
zR4IUb2CJ{Hg>CuaXtD50jB(_Tcx=Z$^WYu2u5kubqmwp%drJ6
z?Fo40g!Qd<-l=TQxqHEOuPX0;^z7iX?Ke^a%XT<13TA^5`4Xcw6D@Ur&VT&CUe0d}
z1GjOVF1^L@>O)l@?bD~$wzgf(nxX1OGD8fEV?TdJcZc2KoUe|oP1#=$$7ee|xbY)A
zDZq+cuTpc(fFdj^=!;{k03C69lMQ(|>uhRfRu%+!k&YOi-3|1QKB
z
z?n?eq1XP>p-IM$Z^C;2L3itnbJZAip*Zo0aw2bs8@(s^~*8T9go!%dHcAz2lM;`yp
zD=7&xjFV$S&5uDaiScyD?B-i1ze`+CoRtz`Wn+Zls4&}MO{@N!ufrzjG$B79)Y2d3tBk&)TxUTw@QS0TEL_?njX|@vq?Uz(nBFK5Pq7*xj#u*R&i|?7+6#
z+|r_n#SW&LXhtheZdah{ZVoqwyT{D>MC3nkFF#N)xLi{p7J1jXlmVeb;cP5?e(=f#
zuT7fvjSbjS781v?7{)-X3*?>tq?)Yd)~|1{BDS(pqC
zC}~H#WXlkUW*H5CDOo<)#x7%RY)A;ShGhI5s*#cRDA8YgqG(HeKDx+#(ZQ?386dv!
zlXCO)w91~Vw4AmOcATuV653fa9R$fyK8ul%rG
z-wfS
zihugoZyr38Im?Zuh6@RcF~t1anQu7>#lPpb#}4cOA!EM11`%f*07RqOVkmX{p~KJ9
z^zP;K#|)$`^Rb{rnHGH{~>1(fawV0*Z#)}M`m8-?ZJV<+e}s9wE#
z)l&az?w^5{)`S(%MRzxdNqrs1n*-=jS^_jqE*5XDrA0+VE`5^*p3CuM<&dZEeCjoz
zR;uu_H9ZPZV|fQq`Cyw4nscrVwi!fE6ciMmX$!_hN7uF;jjKG)d2@aC4ropY)8etW=xJvni)8eHi`H$%#zn^WJ5NLc-rqk|u&&4Z6fD_m&JfSI1Bvb?b<*n&sfl0^t
z=HnmRl`XrFvMKB%9}>PaA`m-fK6a0(8=qPkWS5bb4=v?XcWi&hRY?O5HdulRi4?fN
zlsJ*N-0Qw+Yic@s0(2uy%F@ib;GjXt01Fmx5XbRo6+n|pP(&nodMoap^z{~q
ziEeaUT@Mxe3vJSfI6?uLND(CNr=#^W<1b}jzW58bIfyWTDle$mmS(|x-0|2UlX+9k
zQ^EX7Nw}?EzVoBfT(-LT|=9N@^hcn-_p&sqG
z&*oVs2JSU+N4ZD`FhCAWaS;>|wH2G*Id|?pa#@>tyxX`+4HyIArWDvVrX)2WAOQff
z0qyHu&-S@i^MS-+j--!pr4fPBj~_8({~e1bfcl0wI1kaoN>mJL6KUPQm5N7lB(ui1
zE-o%kq)&djzWJ}ob<-GfDlkB;F31j-VHKvQUGQ3sp`CwyGJk_i!y^sD0fqC@$9|jO
zOqN!r!8-p==F@ZVP=U$qSpY(gQ0)59P1&t@y?5rvg<}E+GB}26NYPp4f2YFQrQtot5mn3wu_qprZ=>Ig-$
zbW26Ws~IgY>}^5w`vTB(G`PTZaDiGBo5o(tp)qli|NeV(
z@H_=R8V39rt5J5YB2Ky?4eJJ#b`_iBe2ot~6%7mLt5t8Vwi^Jy7|jWXqa3amOIoRb
zOr}WVFP--DsS`1WpN%~)t3R!arKF^Q$e12KEqU36AWwnCBICpH4XCsfnyrHr>$I$4
z!DpKX$OKLWarN7nv@!uIA+~RNO)l$$w}p(;b>mx8pwYvu;dD_unryX_NhT8*Tj>BTrTTL&!?O+%Rv;b?B??gSzdp?6Uug9{
zd@V08Z$BdI?fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*vIg?@fVFSmMpaw0qtTRbx}
z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov
zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22
zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq
zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t<
z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k
z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp
z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{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 d1a37ba672bec9ae9621f81eb1b5bb30b40c20b5 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 13/31] 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 746500d798d4741fe9b5b486d76e913254bb8cfe Mon Sep 17 00:00:00 2001
From: "Pedro M. Baeza"
Date: Tue, 5 Jul 2016 20:19:28 +0200
Subject: [PATCH 14/31] 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 a9b6607b2416838c726b2d04a745f73df96277e9 Mon Sep 17 00:00:00 2001
From: "Pedro M. Baeza"
Date: Thu, 6 Oct 2016 14:52:24 +0200
Subject: [PATCH 15/31] 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 6a3a7aea4410255a2a37eab7b529162150b4606b Mon Sep 17 00:00:00 2001
From: Denis Leemann
Date: Wed, 22 Feb 2017 15:26:21 +0100
Subject: [PATCH 16/31] 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 | 26 +++++++++++++++++
hr_contract_reference/i18n/cs_CZ.po | 25 ++++++++++++++++
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 | 17 ++++++-----
hr_contract_reference/i18n/hi_IN.po | 26 +++++++++++++++++
hr_contract_reference/i18n/hr.po | 25 ++++++++++++++++
.../i18n/hr_contract_reference.pot | 20 +++++++++++++
hr_contract_reference/i18n/it.po | 19 ++++++------
hr_contract_reference/i18n/lt.po | 25 ++++++++++++++++
hr_contract_reference/i18n/nl_NL.po | 26 +++++++++++++++++
hr_contract_reference/i18n/pt_BR.po | 10 ++++---
hr_contract_reference/i18n/ro.po | 13 +++++----
hr_contract_reference/i18n/sl.po | 13 +++++----
hr_contract_reference/models/__init__.py | 23 ++-------------
hr_contract_reference/models/hr_contract.py | 29 ++++---------------
.../views/hr_contract_view.xml | 27 ++++++++---------
22 files changed, 274 insertions(+), 151 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/hr_contract_reference.pot
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..8da1982aadb
--- /dev/null
+++ b/hr_contract_reference/i18n/ar.po
@@ -0,0 +1,26 @@
+# 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"
+"Language: ar\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \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
+#, fuzzy
+msgid "Employee 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..7c4b649ebe1
--- /dev/null
+++ b/hr_contract_reference/i18n/cs_CZ.po
@@ -0,0 +1,25 @@
+# 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"
+"Language: cs_CZ\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \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/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 4a7530d9e8e..c72820045c3 100644
--- a/hr_contract_reference/i18n/fr.po
+++ b/hr_contract_reference/i18n/fr.po
@@ -1,23 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * 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"
+"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"
+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..c245173fc6d
--- /dev/null
+++ b/hr_contract_reference/i18n/hi_IN.po
@@ -0,0 +1,26 @@
+# 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"
+"Language: hi_IN\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"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+#, fuzzy
+msgid "Employee Contract"
+msgstr "संपर्क "
diff --git a/hr_contract_reference/i18n/hr.po b/hr_contract_reference/i18n/hr.po
new file mode 100644
index 00000000000..4599500a484
--- /dev/null
+++ b/hr_contract_reference/i18n/hr.po
@@ -0,0 +1,25 @@
+# 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"
+"Language: hr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \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/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 fffca4bc27b..4871e577122 100644
--- a/hr_contract_reference/i18n/it.po
+++ b/hr_contract_reference/i18n/it.po
@@ -1,23 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * 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"
+"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"
+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..0c1959416b2
--- /dev/null
+++ b/hr_contract_reference/i18n/lt.po
@@ -0,0 +1,25 @@
+# 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"
+"Language: lt\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \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..5f576c04494
--- /dev/null
+++ b/hr_contract_reference/i18n/nl_NL.po
@@ -0,0 +1,26 @@
+# 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"
+"Language: nl_NL\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"
+
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_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"
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 476a7991644b97d39bdb88ba93dad91c6bd23a36 Mon Sep 17 00:00:00 2001
From: Vacha Trivedi
Date: Tue, 3 Jul 2018 12:42:47 +0530
Subject: [PATCH 17/31] 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 +++++++---------
.../i18n/hr_contract_reference.pot | 2 +-
hr_contract_reference/models/__init__.py | 1 -
hr_contract_reference/models/hr_contract.py | 5 ++---
7 files changed, 21 insertions(+), 22 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/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"
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 2c844bc1d7f87d888ae644143181c8332c180fdc Mon Sep 17 00:00:00 2001
From: Maria Sparenberg
Date: Mon, 17 Dec 2018 15:24:15 +0000
Subject: [PATCH 18/31] 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 9a243c9ee9eef491572b95910a516b15b706e137 Mon Sep 17 00:00:00 2001
From: Nikul-Chaudhary
Date: Sun, 20 Jan 2019 23:56:58 +0530
Subject: [PATCH 19/31] [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/i18n/ar.po | 5 +
hr_contract_reference/i18n/cs_CZ.po | 5 +
hr_contract_reference/i18n/de.po | 9 +-
hr_contract_reference/i18n/es.po | 5 +
hr_contract_reference/i18n/fi.po | 5 +
hr_contract_reference/i18n/fr.po | 5 +
hr_contract_reference/i18n/hi_IN.po | 5 +
hr_contract_reference/i18n/hr.po | 5 +
.../i18n/hr_contract_reference.pot | 7 +-
hr_contract_reference/i18n/it.po | 5 +
hr_contract_reference/i18n/lt.po | 5 +
hr_contract_reference/i18n/nl_NL.po | 5 +
hr_contract_reference/i18n/pt_BR.po | 5 +
hr_contract_reference/i18n/ro.po | 5 +
hr_contract_reference/i18n/sl.po | 5 +
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 +
28 files changed, 607 insertions(+), 32 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/i18n/ar.po b/hr_contract_reference/i18n/ar.po
index 8da1982aadb..68d8c9d9b76 100644
--- a/hr_contract_reference/i18n/ar.po
+++ b/hr_contract_reference/i18n/ar.po
@@ -19,6 +19,11 @@ msgstr ""
"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.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
#, fuzzy
diff --git a/hr_contract_reference/i18n/cs_CZ.po b/hr_contract_reference/i18n/cs_CZ.po
index 7c4b649ebe1..91d4ad2cb78 100644
--- a/hr_contract_reference/i18n/cs_CZ.po
+++ b/hr_contract_reference/i18n/cs_CZ.po
@@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\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"
diff --git a/hr_contract_reference/i18n/de.po b/hr_contract_reference/i18n/de.po
index e1f1e1d2884..822bd03dfa2 100644
--- a/hr_contract_reference/i18n/de.po
+++ b/hr_contract_reference/i18n/de.po
@@ -10,8 +10,8 @@ msgstr ""
"POT-Creation-Date: 2015-08-18 13:10+0000\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-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"
@@ -19,6 +19,11 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.3\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"
diff --git a/hr_contract_reference/i18n/es.po b/hr_contract_reference/i18n/es.po
index 206154c6734..5724f3edfea 100644
--- a/hr_contract_reference/i18n/es.po
+++ b/hr_contract_reference/i18n/es.po
@@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\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
#, fuzzy
diff --git a/hr_contract_reference/i18n/fi.po b/hr_contract_reference/i18n/fi.po
index ed718adb30a..0acec16c3ad 100644
--- a/hr_contract_reference/i18n/fi.po
+++ b/hr_contract_reference/i18n/fi.po
@@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\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
#, fuzzy
diff --git a/hr_contract_reference/i18n/fr.po b/hr_contract_reference/i18n/fr.po
index c72820045c3..8df8644749f 100644
--- a/hr_contract_reference/i18n/fr.po
+++ b/hr_contract_reference/i18n/fr.po
@@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\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"
diff --git a/hr_contract_reference/i18n/hi_IN.po b/hr_contract_reference/i18n/hi_IN.po
index c245173fc6d..13544181ba6 100644
--- a/hr_contract_reference/i18n/hi_IN.po
+++ b/hr_contract_reference/i18n/hi_IN.po
@@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\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
#, fuzzy
diff --git a/hr_contract_reference/i18n/hr.po b/hr_contract_reference/i18n/hr.po
index 4599500a484..7f04133ab26 100644
--- a/hr_contract_reference/i18n/hr.po
+++ b/hr_contract_reference/i18n/hr.po
@@ -19,6 +19,11 @@ msgstr ""
"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.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"
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"
diff --git a/hr_contract_reference/i18n/it.po b/hr_contract_reference/i18n/it.po
index 4871e577122..06e1ab24578 100644
--- a/hr_contract_reference/i18n/it.po
+++ b/hr_contract_reference/i18n/it.po
@@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\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"
diff --git a/hr_contract_reference/i18n/lt.po b/hr_contract_reference/i18n/lt.po
index 0c1959416b2..cdbfff06486 100644
--- a/hr_contract_reference/i18n/lt.po
+++ b/hr_contract_reference/i18n/lt.po
@@ -19,6 +19,11 @@ msgstr ""
"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.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"
diff --git a/hr_contract_reference/i18n/nl_NL.po b/hr_contract_reference/i18n/nl_NL.po
index 5f576c04494..5f914e536f7 100644
--- a/hr_contract_reference/i18n/nl_NL.po
+++ b/hr_contract_reference/i18n/nl_NL.po
@@ -19,6 +19,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\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
#, fuzzy
diff --git a/hr_contract_reference/i18n/pt_BR.po b/hr_contract_reference/i18n/pt_BR.po
index 731be2aea51..26fd9930360 100644
--- a/hr_contract_reference/i18n/pt_BR.po
+++ b/hr_contract_reference/i18n/pt_BR.po
@@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\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
#, fuzzy
diff --git a/hr_contract_reference/i18n/ro.po b/hr_contract_reference/i18n/ro.po
index 34b2418fd62..848a40ca210 100644
--- a/hr_contract_reference/i18n/ro.po
+++ b/hr_contract_reference/i18n/ro.po
@@ -19,6 +19,11 @@ msgstr ""
"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.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
#, fuzzy
diff --git a/hr_contract_reference/i18n/sl.po b/hr_contract_reference/i18n/sl.po
index 675ff6408fd..b5ce1f0ee7c 100644
--- a/hr_contract_reference/i18n/sl.po
+++ b/hr_contract_reference/i18n/sl.po
@@ -19,6 +19,11 @@ msgstr ""
"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.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
#, fuzzy
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..41d944bc79b
--- /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 1d17e9d0ae1dd66ff18ffcf7c39fb92c67fc4487 Mon Sep 17 00:00:00 2001
From: Jaime Arroyo
Date: Tue, 13 Oct 2020 17:32:07 +0200
Subject: [PATCH 20/31] [IMP] hr_contract_reference: black, isort, prettier
---
hr_contract_reference/__manifest__.py | 13 +++++--------
hr_contract_reference/data/hr_contract_sequence.xml | 4 +---
hr_contract_reference/models/hr_contract.py | 12 ++++--------
hr_contract_reference/readme/DESCRIPTION.rst | 2 +-
.../tests/test_contract_reference.py | 12 +++++-------
hr_contract_reference/views/hr_contract_view.xml | 4 ++--
6 files changed, 18 insertions(+), 29 deletions(-)
diff --git a/hr_contract_reference/__manifest__.py b/hr_contract_reference/__manifest__.py
index 065b24f25e3..49075144bef 100644
--- a/hr_contract_reference/__manifest__.py
+++ b/hr_contract_reference/__manifest__.py
@@ -4,15 +4,12 @@
"name": "HR Contract Reference",
"version": "12.0.1.0.0",
"category": "Generic Modules/Human Resources",
- "author": 'Michael Telahun Makonnen, '
- 'Fekete Mihai (Forest and Biomass Services Romania), '
- 'Odoo Community Association (OCA)',
+ "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"],
- "data": [
- 'views/hr_contract_view.xml',
- 'data/hr_contract_sequence.xml',
- ],
- 'installable': True,
+ "data": ["views/hr_contract_view.xml", "data/hr_contract_sequence.xml"],
+ "installable": True,
}
diff --git a/hr_contract_reference/data/hr_contract_sequence.xml b/hr_contract_reference/data/hr_contract_sequence.xml
index 8d23459174d..c2c2ceab37c 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
-
diff --git a/hr_contract_reference/models/hr_contract.py b/hr_contract_reference/models/hr_contract.py
index 114312b15f8..8369ac3ab94 100644
--- a/hr_contract_reference/models/hr_contract.py
+++ b/hr_contract_reference/models/hr_contract.py
@@ -5,18 +5,14 @@
class HrContract(models.Model):
- _inherit = 'hr.contract'
+ _inherit = "hr.contract"
name = fields.Char(
- 'Contract Reference',
- required=False,
- readonly=True,
- copy=False,
- default='/'
+ "Contract Reference", required=False, readonly=True, copy=False, default="/"
)
@api.model
def create(self, vals):
- if vals.get('name', '/') == '/':
- vals['name'] = self.env['ir.sequence'].next_by_code('contract.ref')
+ if vals.get("name", "/") == "/":
+ vals["name"] = self.env["ir.sequence"].next_by_code("contract.ref")
return super(HrContract, self).create(vals)
diff --git a/hr_contract_reference/readme/DESCRIPTION.rst b/hr_contract_reference/readme/DESCRIPTION.rst
index 72c1b46c48f..7934a3f12c2 100644
--- a/hr_contract_reference/readme/DESCRIPTION.rst
+++ b/hr_contract_reference/readme/DESCRIPTION.rst
@@ -1,3 +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
+automatically from the sequence predefined.
diff --git a/hr_contract_reference/tests/test_contract_reference.py b/hr_contract_reference/tests/test_contract_reference.py
index 8d3b996ea45..282f7f66a5d 100644
--- a/hr_contract_reference/tests/test_contract_reference.py
+++ b/hr_contract_reference/tests/test_contract_reference.py
@@ -5,14 +5,12 @@
class TestContractReference(TransactionCase):
-
def setUp(self):
super(TestContractReference, self).setUp()
- self.employee = self.env['hr.employee'].create({'name': 'Emp'})
+ 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, '/')
+ contract = self.employee = self.env["hr.contract"].create(
+ {"employee_id": self.employee.id, "wage": 1000}
+ )
+ self.assertNotEqual(contract.name, "/")
diff --git a/hr_contract_reference/views/hr_contract_view.xml b/hr_contract_reference/views/hr_contract_view.xml
index 36363db0494..940fcc7b574 100644
--- a/hr_contract_reference/views/hr_contract_view.xml
+++ b/hr_contract_reference/views/hr_contract_view.xml
@@ -1,10 +1,10 @@
-
+
hr.contract.form.view.inherit.ref
hr.contract
form
-
+
True
From 3ab4c306eb12cdbbceabd9a734561cb594913089 Mon Sep 17 00:00:00 2001
From: Jaime Arroyo
Date: Tue, 13 Oct 2020 17:35:47 +0200
Subject: [PATCH 21/31] [13.0][MIG] hr_contract_reference
---
hr_contract_reference/README.rst | 10 +++++-----
hr_contract_reference/__manifest__.py | 2 +-
.../i18n/hr_contract_reference.pot | 15 +++++++--------
.../static/description/index.html | 6 +++---
4 files changed, 16 insertions(+), 17 deletions(-)
diff --git a/hr_contract_reference/README.rst b/hr_contract_reference/README.rst
index 87025f520e4..270dde26bc4 100644
--- a/hr_contract_reference/README.rst
+++ b/hr_contract_reference/README.rst
@@ -14,13 +14,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/12.0/hr_contract_reference
+ :target: https://github.com/OCA/hr/tree/13.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
+ :target: https://translation.odoo-community.org/projects/hr-13-0/hr-13-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
+ :target: https://runbot.odoo-community.org/runbot/116/13.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -54,7 +54,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 smashing it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -89,6 +89,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 49075144bef..ed143b6e517 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": "12.0.1.0.0",
+ "version": "13.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/hr_contract_reference.pot b/hr_contract_reference/i18n/hr_contract_reference.pot
index 12802df07ae..6f786bff8ce 100644
--- a/hr_contract_reference/i18n/hr_contract_reference.pot
+++ b/hr_contract_reference/i18n/hr_contract_reference.pot
@@ -1,12 +1,12 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
-# * hr_contract_reference
+# * hr_contract_reference
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 12.0\n"
+"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
-"Last-Translator: <>\n"
+"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -14,12 +14,11 @@ msgstr ""
"Plural-Forms: \n"
#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name
-msgid "Contract Reference"
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Contract"
msgstr ""
#. module: hr_contract_reference
-#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Employee Contract"
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name
+msgid "Contract Reference"
msgstr ""
-
diff --git a/hr_contract_reference/static/description/index.html b/hr_contract_reference/static/description/index.html
index 41d944bc79b..971c865950e 100644
--- a/hr_contract_reference/static/description/index.html
+++ b/hr_contract_reference/static/description/index.html
@@ -367,7 +367,7 @@ HR Contract Reference
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

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.
@@ -402,7 +402,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 smashing it by providing a detailed and welcomed
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -431,7 +431,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.
From 57c1a6887380dfc0a6e5e6be7b937339043a785f Mon Sep 17 00:00:00 2001
From: Tobias Zehntner
Date: Fri, 26 Feb 2021 10:25:18 +0100
Subject: [PATCH 22/31] [MIG] hr_contract_reference: Migration to 14.0
---
hr_contract_reference/README.rst | 10 +++++-----
hr_contract_reference/__manifest__.py | 4 ++--
.../i18n/hr_contract_reference.pot | 17 ++++++++++++++++-
.../static/description/index.html | 6 +++---
.../tests/test_contract_reference.py | 2 +-
.../views/hr_contract_view.xml | 14 --------------
6 files changed, 27 insertions(+), 26 deletions(-)
delete mode 100644 hr_contract_reference/views/hr_contract_view.xml
diff --git a/hr_contract_reference/README.rst b/hr_contract_reference/README.rst
index 270dde26bc4..55124e05fc7 100644
--- a/hr_contract_reference/README.rst
+++ b/hr_contract_reference/README.rst
@@ -14,13 +14,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/13.0/hr_contract_reference
+ :target: https://github.com/OCA/hr/tree/14.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-13-0/hr-13-0-hr_contract_reference
+ :target: https://translation.odoo-community.org/projects/hr-14-0/hr-14-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/13.0
+ :target: https://runbot.odoo-community.org/runbot/116/14.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -54,7 +54,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 smashing it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -89,6 +89,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 ed143b6e517..e3f20d108a0 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": "13.0.1.0.0",
+ "version": "14.0.1.0.0",
"category": "Generic Modules/Human Resources",
"author": "Michael Telahun Makonnen, "
"Fekete Mihai (Forest and Biomass Services Romania), "
@@ -10,6 +10,6 @@
"website": "https://github.com/OCA/hr",
"license": "AGPL-3",
"depends": ["hr_contract"],
- "data": ["views/hr_contract_view.xml", "data/hr_contract_sequence.xml"],
+ "data": ["data/hr_contract_sequence.xml"],
"installable": True,
}
diff --git a/hr_contract_reference/i18n/hr_contract_reference.pot b/hr_contract_reference/i18n/hr_contract_reference.pot
index 6f786bff8ce..31567a514a1 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 13.0\n"
+"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -22,3 +22,18 @@ msgstr ""
#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name
msgid "Contract Reference"
msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
+msgid "Display Name"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
+msgid "ID"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
+msgid "Last Modified on"
+msgstr ""
diff --git a/hr_contract_reference/static/description/index.html b/hr_contract_reference/static/description/index.html
index 971c865950e..0e6f98b6add 100644
--- a/hr_contract_reference/static/description/index.html
+++ b/hr_contract_reference/static/description/index.html
@@ -367,7 +367,7 @@ HR Contract Reference
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

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.
@@ -402,7 +402,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 smashing it by providing a detailed and welcomed
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -431,7 +431,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 282f7f66a5d..0f02f6619c8 100644
--- a/hr_contract_reference/tests/test_contract_reference.py
+++ b/hr_contract_reference/tests/test_contract_reference.py
@@ -10,7 +10,7 @@ def setUp(self):
self.employee = self.env["hr.employee"].create({"name": "Emp"})
def test_contract_reference(self):
- contract = self.employee = self.env["hr.contract"].create(
+ contract = self.env["hr.contract"].create(
{"employee_id": self.employee.id, "wage": 1000}
)
self.assertNotEqual(contract.name, "/")
diff --git a/hr_contract_reference/views/hr_contract_view.xml b/hr_contract_reference/views/hr_contract_view.xml
deleted file mode 100644
index 940fcc7b574..00000000000
--- a/hr_contract_reference/views/hr_contract_view.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- hr.contract.form.view.inherit.ref
- hr.contract
- form
-
-
-
- True
-
-
-
-
From da31e172f5aee85e720d831028ab410515f923f0 Mon Sep 17 00:00:00 2001
From: Maria Sparenberg
Date: Fri, 9 Jul 2021 12:38:44 +0000
Subject: [PATCH 23/31] Translated using Weblate (German)
Currently translated at 100.0% (2 of 2 strings)
Translation: hr-14.0/hr-14.0-hr_contract_reference
Translate-URL: https://translation.odoo-community.org/projects/hr-14-0/hr-14-0-hr_contract_reference/de/
---
hr_contract_reference/i18n/de.po | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/hr_contract_reference/i18n/de.po b/hr_contract_reference/i18n/de.po
index 822bd03dfa2..a7b9d3963d1 100644
--- a/hr_contract_reference/i18n/de.po
+++ b/hr_contract_reference/i18n/de.po
@@ -8,21 +8,21 @@ 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: 2018-12-18 13:07+0000\n"
+"PO-Revision-Date: 2021-07-09 14:48+0000\n"
"Last-Translator: Maria Sparenberg \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"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Generator: Weblate 3.3\n"
+"X-Generator: Weblate 4.3.2\n"
#. module: hr_contract_reference
#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name
msgid "Contract Reference"
-msgstr ""
+msgstr "Vertragsreferenz"
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
From d9695845f63b859a91abcf061dd8e90b645af5c4 Mon Sep 17 00:00:00 2001
From: Rodrigo Macedo
Date: Tue, 1 Feb 2022 17:44:44 +0000
Subject: [PATCH 24/31] Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (2 of 2 strings)
Translation: hr-14.0/hr-14.0-hr_contract_reference
Translate-URL: https://translation.odoo-community.org/projects/hr-14-0/hr-14-0-hr_contract_reference/pt_BR/
---
hr_contract_reference/i18n/ar.po | 15 +++++++++++
hr_contract_reference/i18n/cs_CZ.po | 15 +++++++++++
hr_contract_reference/i18n/de.po | 19 ++++++++++++--
hr_contract_reference/i18n/es.po | 15 +++++++++++
hr_contract_reference/i18n/fi.po | 15 +++++++++++
hr_contract_reference/i18n/fr.po | 15 +++++++++++
hr_contract_reference/i18n/hi_IN.po | 15 +++++++++++
hr_contract_reference/i18n/hr.po | 15 +++++++++++
.../i18n/hr_contract_reference.pot | 10 ++++----
hr_contract_reference/i18n/it.po | 15 +++++++++++
hr_contract_reference/i18n/lt.po | 15 +++++++++++
hr_contract_reference/i18n/nl_NL.po | 15 +++++++++++
hr_contract_reference/i18n/pt_BR.po | 25 +++++++++++++++----
hr_contract_reference/i18n/ro.po | 15 +++++++++++
hr_contract_reference/i18n/sl.po | 15 +++++++++++
15 files changed, 222 insertions(+), 12 deletions(-)
diff --git a/hr_contract_reference/i18n/ar.po b/hr_contract_reference/i18n/ar.po
index 68d8c9d9b76..8f2686a86d5 100644
--- a/hr_contract_reference/i18n/ar.po
+++ b/hr_contract_reference/i18n/ar.po
@@ -24,8 +24,23 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
+msgid "Display Name"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
#, fuzzy
msgid "Employee Contract"
msgstr "العقد"
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
+msgid "ID"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
+msgid "Last Modified on"
+msgstr ""
diff --git a/hr_contract_reference/i18n/cs_CZ.po b/hr_contract_reference/i18n/cs_CZ.po
index 91d4ad2cb78..d859a892459 100644
--- a/hr_contract_reference/i18n/cs_CZ.po
+++ b/hr_contract_reference/i18n/cs_CZ.po
@@ -24,7 +24,22 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
+msgid "Display Name"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
msgid "Employee Contract"
msgstr "Smlouva o zaměstnance"
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
+msgid "ID"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
+msgid "Last Modified on"
+msgstr ""
diff --git a/hr_contract_reference/i18n/de.po b/hr_contract_reference/i18n/de.po
index a7b9d3963d1..3e61ad2c0b3 100644
--- a/hr_contract_reference/i18n/de.po
+++ b/hr_contract_reference/i18n/de.po
@@ -10,8 +10,8 @@ msgstr ""
"POT-Creation-Date: 2015-08-18 13:10+0000\n"
"PO-Revision-Date: 2021-07-09 14:48+0000\n"
"Last-Translator: Maria Sparenberg \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"
@@ -24,7 +24,22 @@ msgstr ""
msgid "Contract Reference"
msgstr "Vertragsreferenz"
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
+msgid "Display Name"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
msgid "Employee Contract"
msgstr "Arbeitsvertrag"
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
+msgid "ID"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
+msgid "Last Modified on"
+msgstr ""
diff --git a/hr_contract_reference/i18n/es.po b/hr_contract_reference/i18n/es.po
index 5724f3edfea..771c9dbad16 100644
--- a/hr_contract_reference/i18n/es.po
+++ b/hr_contract_reference/i18n/es.po
@@ -23,8 +23,23 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
+msgid "Display Name"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
#, fuzzy
msgid "Employee Contract"
msgstr "Contrato"
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
+msgid "ID"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
+msgid "Last Modified on"
+msgstr ""
diff --git a/hr_contract_reference/i18n/fi.po b/hr_contract_reference/i18n/fi.po
index 0acec16c3ad..e68b3dee5ae 100644
--- a/hr_contract_reference/i18n/fi.po
+++ b/hr_contract_reference/i18n/fi.po
@@ -23,8 +23,23 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
+msgid "Display Name"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
#, fuzzy
msgid "Employee Contract"
msgstr "Sopimus"
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
+msgid "ID"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
+msgid "Last Modified on"
+msgstr ""
diff --git a/hr_contract_reference/i18n/fr.po b/hr_contract_reference/i18n/fr.po
index 8df8644749f..34374dc177d 100644
--- a/hr_contract_reference/i18n/fr.po
+++ b/hr_contract_reference/i18n/fr.po
@@ -23,7 +23,22 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
+msgid "Display Name"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
msgid "Employee Contract"
msgstr "Contrat"
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
+msgid "ID"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
+msgid "Last Modified on"
+msgstr ""
diff --git a/hr_contract_reference/i18n/hi_IN.po b/hr_contract_reference/i18n/hi_IN.po
index 13544181ba6..bf51377690c 100644
--- a/hr_contract_reference/i18n/hi_IN.po
+++ b/hr_contract_reference/i18n/hi_IN.po
@@ -24,8 +24,23 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
+msgid "Display Name"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
#, fuzzy
msgid "Employee Contract"
msgstr "संपर्क "
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
+msgid "ID"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
+msgid "Last Modified on"
+msgstr ""
diff --git a/hr_contract_reference/i18n/hr.po b/hr_contract_reference/i18n/hr.po
index 7f04133ab26..d52323c8ce0 100644
--- a/hr_contract_reference/i18n/hr.po
+++ b/hr_contract_reference/i18n/hr.po
@@ -24,7 +24,22 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
+msgid "Display Name"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
msgid "Employee Contract"
msgstr "Ugovor zaposlenika"
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
+msgid "ID"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
+msgid "Last Modified on"
+msgstr ""
diff --git a/hr_contract_reference/i18n/hr_contract_reference.pot b/hr_contract_reference/i18n/hr_contract_reference.pot
index 31567a514a1..860ecff3806 100644
--- a/hr_contract_reference/i18n/hr_contract_reference.pot
+++ b/hr_contract_reference/i18n/hr_contract_reference.pot
@@ -13,11 +13,6 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
-#. module: hr_contract_reference
-#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Contract"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name
msgid "Contract Reference"
@@ -28,6 +23,11 @@ msgstr ""
msgid "Display Name"
msgstr ""
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Employee Contract"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
msgid "ID"
diff --git a/hr_contract_reference/i18n/it.po b/hr_contract_reference/i18n/it.po
index 06e1ab24578..60dbfcc6784 100644
--- a/hr_contract_reference/i18n/it.po
+++ b/hr_contract_reference/i18n/it.po
@@ -23,7 +23,22 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
+msgid "Display Name"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
msgid "Employee Contract"
msgstr "Contratto dei dipendenti"
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
+msgid "ID"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
+msgid "Last Modified on"
+msgstr ""
diff --git a/hr_contract_reference/i18n/lt.po b/hr_contract_reference/i18n/lt.po
index cdbfff06486..e142425c9d1 100644
--- a/hr_contract_reference/i18n/lt.po
+++ b/hr_contract_reference/i18n/lt.po
@@ -24,7 +24,22 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
+msgid "Display Name"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
msgid "Employee Contract"
msgstr "Darbuotojo kontraktas"
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
+msgid "ID"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
+msgid "Last Modified on"
+msgstr ""
diff --git a/hr_contract_reference/i18n/nl_NL.po b/hr_contract_reference/i18n/nl_NL.po
index 5f914e536f7..49164830fbd 100644
--- a/hr_contract_reference/i18n/nl_NL.po
+++ b/hr_contract_reference/i18n/nl_NL.po
@@ -24,8 +24,23 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
+msgid "Display Name"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
#, fuzzy
msgid "Employee Contract"
msgstr "Contract"
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
+msgid "ID"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
+msgid "Last Modified on"
+msgstr ""
diff --git a/hr_contract_reference/i18n/pt_BR.po b/hr_contract_reference/i18n/pt_BR.po
index 26fd9930360..51b33823cf3 100644
--- a/hr_contract_reference/i18n/pt_BR.po
+++ b/hr_contract_reference/i18n/pt_BR.po
@@ -8,23 +8,38 @@ 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"
+"PO-Revision-Date: 2022-02-01 20:33+0000\n"
+"Last-Translator: Rodrigo Macedo \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"
-"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"Plural-Forms: nplurals=2; plural=n > 1;\n"
+"X-Generator: Weblate 4.3.2\n"
#. module: hr_contract_reference
#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name
msgid "Contract Reference"
+msgstr "Referência do contrato"
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
+msgid "Display Name"
msgstr ""
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
-#, fuzzy
msgid "Employee Contract"
-msgstr "Contrato"
+msgstr "Contrato do Empregado"
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
+msgid "ID"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
+msgid "Last Modified on"
+msgstr ""
diff --git a/hr_contract_reference/i18n/ro.po b/hr_contract_reference/i18n/ro.po
index 848a40ca210..532ad4923df 100644
--- a/hr_contract_reference/i18n/ro.po
+++ b/hr_contract_reference/i18n/ro.po
@@ -24,8 +24,23 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
+msgid "Display Name"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
#, fuzzy
msgid "Employee Contract"
msgstr "Contract"
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
+msgid "ID"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
+msgid "Last Modified on"
+msgstr ""
diff --git a/hr_contract_reference/i18n/sl.po b/hr_contract_reference/i18n/sl.po
index b5ce1f0ee7c..8ce082aab85 100644
--- a/hr_contract_reference/i18n/sl.po
+++ b/hr_contract_reference/i18n/sl.po
@@ -24,8 +24,23 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
+msgid "Display Name"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
#, fuzzy
msgid "Employee Contract"
msgstr "Pogodba"
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
+msgid "ID"
+msgstr ""
+
+#. module: hr_contract_reference
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
+msgid "Last Modified on"
+msgstr ""
From fe7244b4f0d349c9a5f32ac860b2a213a0267d4d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?N=C3=BAria=20Sancho?=
Date: Wed, 31 Aug 2022 12:15:47 +0200
Subject: [PATCH 25/31] [MIG] hr_contract_reference: Migration to 15.0
---
hr_contract_reference/README.rst | 10 ++++----
hr_contract_reference/__manifest__.py | 2 +-
.../i18n/hr_contract_reference.pot | 23 ++++---------------
.../static/description/index.html | 6 ++---
4 files changed, 13 insertions(+), 28 deletions(-)
diff --git a/hr_contract_reference/README.rst b/hr_contract_reference/README.rst
index 55124e05fc7..0f7cb3d2613 100644
--- a/hr_contract_reference/README.rst
+++ b/hr_contract_reference/README.rst
@@ -14,13 +14,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/14.0/hr_contract_reference
+ :target: https://github.com/OCA/hr/tree/15.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-14-0/hr-14-0-hr_contract_reference
+ :target: https://translation.odoo-community.org/projects/hr-15-0/hr-15-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/14.0
+ :target: https://runbot.odoo-community.org/runbot/116/15.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -54,7 +54,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 smashing it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -89,6 +89,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 e3f20d108a0..a1aef3cdb00 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": "14.0.1.0.0",
+ "version": "15.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/hr_contract_reference.pot b/hr_contract_reference/i18n/hr_contract_reference.pot
index 860ecff3806..1e36f80aeb4 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 14.0\n"
+"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -13,27 +13,12 @@ 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.fields,field_description:hr_contract_reference.field_hr_contract__display_name
-msgid "Display Name"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Employee Contract"
-msgstr ""
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
-msgid "ID"
+msgid "Contract"
msgstr ""
#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
-msgid "Last Modified on"
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name
+msgid "Contract Reference"
msgstr ""
diff --git a/hr_contract_reference/static/description/index.html b/hr_contract_reference/static/description/index.html
index 0e6f98b6add..1e6828194e5 100644
--- a/hr_contract_reference/static/description/index.html
+++ b/hr_contract_reference/static/description/index.html
@@ -367,7 +367,7 @@ HR Contract Reference
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

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.
@@ -402,7 +402,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 smashing it by providing a detailed and welcomed
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -431,7 +431,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.
From ac0d2aa78c90638eebd75361906efbc4916ad209 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Douglas=20Cust=C3=B3dio?=
Date: Mon, 26 Sep 2022 13:10:55 +0000
Subject: [PATCH 26/31] Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (5 of 5 strings)
Translation: hr-15.0/hr-15.0-hr_contract_reference
Translate-URL: https://translation.odoo-community.org/projects/hr-15-0/hr-15-0-hr_contract_reference/pt_BR/
---
hr_contract_reference/i18n/ar.po | 15 ------------
hr_contract_reference/i18n/cs_CZ.po | 15 ------------
hr_contract_reference/i18n/de.po | 15 ------------
hr_contract_reference/i18n/es.po | 15 ------------
hr_contract_reference/i18n/fi.po | 15 ------------
hr_contract_reference/i18n/fr.po | 15 ------------
hr_contract_reference/i18n/hi_IN.po | 15 ------------
hr_contract_reference/i18n/hr.po | 15 ------------
.../i18n/hr_contract_reference.pot | 8 +++----
hr_contract_reference/i18n/it.po | 15 ------------
hr_contract_reference/i18n/lt.po | 15 ------------
hr_contract_reference/i18n/nl_NL.po | 15 ------------
hr_contract_reference/i18n/pt_BR.po | 24 +++++++------------
hr_contract_reference/i18n/ro.po | 15 ------------
hr_contract_reference/i18n/sl.po | 15 ------------
15 files changed, 13 insertions(+), 214 deletions(-)
diff --git a/hr_contract_reference/i18n/ar.po b/hr_contract_reference/i18n/ar.po
index 8f2686a86d5..68d8c9d9b76 100644
--- a/hr_contract_reference/i18n/ar.po
+++ b/hr_contract_reference/i18n/ar.po
@@ -24,23 +24,8 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
-msgid "Display Name"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
#, fuzzy
msgid "Employee Contract"
msgstr "العقد"
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
-msgid "ID"
-msgstr ""
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
-msgid "Last Modified on"
-msgstr ""
diff --git a/hr_contract_reference/i18n/cs_CZ.po b/hr_contract_reference/i18n/cs_CZ.po
index d859a892459..91d4ad2cb78 100644
--- a/hr_contract_reference/i18n/cs_CZ.po
+++ b/hr_contract_reference/i18n/cs_CZ.po
@@ -24,22 +24,7 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
-msgid "Display Name"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
msgid "Employee Contract"
msgstr "Smlouva o zaměstnance"
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
-msgid "ID"
-msgstr ""
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
-msgid "Last Modified on"
-msgstr ""
diff --git a/hr_contract_reference/i18n/de.po b/hr_contract_reference/i18n/de.po
index 3e61ad2c0b3..f1d68b294c5 100644
--- a/hr_contract_reference/i18n/de.po
+++ b/hr_contract_reference/i18n/de.po
@@ -24,22 +24,7 @@ msgstr ""
msgid "Contract Reference"
msgstr "Vertragsreferenz"
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
-msgid "Display Name"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
msgid "Employee Contract"
msgstr "Arbeitsvertrag"
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
-msgid "ID"
-msgstr ""
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
-msgid "Last Modified on"
-msgstr ""
diff --git a/hr_contract_reference/i18n/es.po b/hr_contract_reference/i18n/es.po
index 771c9dbad16..5724f3edfea 100644
--- a/hr_contract_reference/i18n/es.po
+++ b/hr_contract_reference/i18n/es.po
@@ -23,23 +23,8 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
-msgid "Display Name"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
#, fuzzy
msgid "Employee Contract"
msgstr "Contrato"
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
-msgid "ID"
-msgstr ""
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
-msgid "Last Modified on"
-msgstr ""
diff --git a/hr_contract_reference/i18n/fi.po b/hr_contract_reference/i18n/fi.po
index e68b3dee5ae..0acec16c3ad 100644
--- a/hr_contract_reference/i18n/fi.po
+++ b/hr_contract_reference/i18n/fi.po
@@ -23,23 +23,8 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
-msgid "Display Name"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
#, fuzzy
msgid "Employee Contract"
msgstr "Sopimus"
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
-msgid "ID"
-msgstr ""
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
-msgid "Last Modified on"
-msgstr ""
diff --git a/hr_contract_reference/i18n/fr.po b/hr_contract_reference/i18n/fr.po
index 34374dc177d..8df8644749f 100644
--- a/hr_contract_reference/i18n/fr.po
+++ b/hr_contract_reference/i18n/fr.po
@@ -23,22 +23,7 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
-msgid "Display Name"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
msgid "Employee Contract"
msgstr "Contrat"
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
-msgid "ID"
-msgstr ""
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
-msgid "Last Modified on"
-msgstr ""
diff --git a/hr_contract_reference/i18n/hi_IN.po b/hr_contract_reference/i18n/hi_IN.po
index bf51377690c..13544181ba6 100644
--- a/hr_contract_reference/i18n/hi_IN.po
+++ b/hr_contract_reference/i18n/hi_IN.po
@@ -24,23 +24,8 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
-msgid "Display Name"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
#, fuzzy
msgid "Employee Contract"
msgstr "संपर्क "
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
-msgid "ID"
-msgstr ""
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
-msgid "Last Modified on"
-msgstr ""
diff --git a/hr_contract_reference/i18n/hr.po b/hr_contract_reference/i18n/hr.po
index d52323c8ce0..7f04133ab26 100644
--- a/hr_contract_reference/i18n/hr.po
+++ b/hr_contract_reference/i18n/hr.po
@@ -24,22 +24,7 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
-msgid "Display Name"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
msgid "Employee Contract"
msgstr "Ugovor zaposlenika"
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
-msgid "ID"
-msgstr ""
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
-msgid "Last Modified on"
-msgstr ""
diff --git a/hr_contract_reference/i18n/hr_contract_reference.pot b/hr_contract_reference/i18n/hr_contract_reference.pot
index 1e36f80aeb4..d41a43f8a75 100644
--- a/hr_contract_reference/i18n/hr_contract_reference.pot
+++ b/hr_contract_reference/i18n/hr_contract_reference.pot
@@ -14,11 +14,11 @@ msgstr ""
"Plural-Forms: \n"
#. module: hr_contract_reference
-#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Contract"
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name
+msgid "Contract Reference"
msgstr ""
#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name
-msgid "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 60dbfcc6784..06e1ab24578 100644
--- a/hr_contract_reference/i18n/it.po
+++ b/hr_contract_reference/i18n/it.po
@@ -23,22 +23,7 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
-msgid "Display Name"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
msgid "Employee Contract"
msgstr "Contratto dei dipendenti"
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
-msgid "ID"
-msgstr ""
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
-msgid "Last Modified on"
-msgstr ""
diff --git a/hr_contract_reference/i18n/lt.po b/hr_contract_reference/i18n/lt.po
index e142425c9d1..cdbfff06486 100644
--- a/hr_contract_reference/i18n/lt.po
+++ b/hr_contract_reference/i18n/lt.po
@@ -24,22 +24,7 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
-msgid "Display Name"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
msgid "Employee Contract"
msgstr "Darbuotojo kontraktas"
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
-msgid "ID"
-msgstr ""
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
-msgid "Last Modified on"
-msgstr ""
diff --git a/hr_contract_reference/i18n/nl_NL.po b/hr_contract_reference/i18n/nl_NL.po
index 49164830fbd..5f914e536f7 100644
--- a/hr_contract_reference/i18n/nl_NL.po
+++ b/hr_contract_reference/i18n/nl_NL.po
@@ -24,23 +24,8 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
-msgid "Display Name"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
#, fuzzy
msgid "Employee Contract"
msgstr "Contract"
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
-msgid "ID"
-msgstr ""
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
-msgid "Last Modified on"
-msgstr ""
diff --git a/hr_contract_reference/i18n/pt_BR.po b/hr_contract_reference/i18n/pt_BR.po
index 51b33823cf3..f4cbb8ca685 100644
--- a/hr_contract_reference/i18n/pt_BR.po
+++ b/hr_contract_reference/i18n/pt_BR.po
@@ -8,8 +8,8 @@ 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: 2022-02-01 20:33+0000\n"
-"Last-Translator: Rodrigo Macedo \n"
+"PO-Revision-Date: 2022-09-26 16:07+0000\n"
+"Last-Translator: Douglas Custódio \n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-hr-8-0/"
"language/pt_BR/)\n"
"Language: pt_BR\n"
@@ -24,22 +24,16 @@ msgstr ""
msgid "Contract Reference"
msgstr "Referência do contrato"
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
-msgid "Display Name"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
msgid "Employee Contract"
msgstr "Contrato do Empregado"
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
-msgid "ID"
-msgstr ""
+#~ msgid "Display Name"
+#~ msgstr "Nome de Exibição"
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
-msgid "Last Modified on"
-msgstr ""
+#~ msgid "ID"
+#~ msgstr "ID"
+
+#~ msgid "Last Modified on"
+#~ msgstr "Última Modificação em"
diff --git a/hr_contract_reference/i18n/ro.po b/hr_contract_reference/i18n/ro.po
index 532ad4923df..848a40ca210 100644
--- a/hr_contract_reference/i18n/ro.po
+++ b/hr_contract_reference/i18n/ro.po
@@ -24,23 +24,8 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
-msgid "Display Name"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
#, fuzzy
msgid "Employee Contract"
msgstr "Contract"
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
-msgid "ID"
-msgstr ""
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
-msgid "Last Modified on"
-msgstr ""
diff --git a/hr_contract_reference/i18n/sl.po b/hr_contract_reference/i18n/sl.po
index 8ce082aab85..b5ce1f0ee7c 100644
--- a/hr_contract_reference/i18n/sl.po
+++ b/hr_contract_reference/i18n/sl.po
@@ -24,23 +24,8 @@ msgstr ""
msgid "Contract Reference"
msgstr ""
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__display_name
-msgid "Display Name"
-msgstr ""
-
#. module: hr_contract_reference
#: model:ir.model,name:hr_contract_reference.model_hr_contract
#, fuzzy
msgid "Employee Contract"
msgstr "Pogodba"
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__id
-msgid "ID"
-msgstr ""
-
-#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract____last_update
-msgid "Last Modified on"
-msgstr ""
From 7d622b38ad46b4beeb43c3dd6c9ea61a6c5a8c37 Mon Sep 17 00:00:00 2001
From: Jaen
Date: Tue, 28 Mar 2023 22:50:45 +0200
Subject: [PATCH 27/31] [MIG] hr_contract_reference: Migration to 16.0
---
hr_contract_reference/README.rst | 23 ++++----
hr_contract_reference/__manifest__.py | 2 +-
hr_contract_reference/i18n/ar.po | 11 ++--
hr_contract_reference/i18n/cs_CZ.po | 11 ++--
hr_contract_reference/i18n/de.po | 11 ++--
hr_contract_reference/i18n/es.po | 11 ++--
hr_contract_reference/i18n/fi.po | 11 ++--
hr_contract_reference/i18n/fr.po | 11 ++--
hr_contract_reference/i18n/hi_IN.po | 11 ++--
hr_contract_reference/i18n/hr.po | 15 +++---
.../i18n/hr_contract_reference.pot | 10 ++--
hr_contract_reference/i18n/it.po | 11 ++--
hr_contract_reference/i18n/lt.po | 15 +++---
hr_contract_reference/i18n/nl_NL.po | 11 ++--
hr_contract_reference/i18n/pt_BR.po | 11 ++--
hr_contract_reference/i18n/ro.po | 11 ++--
hr_contract_reference/i18n/sl.po | 15 +++---
.../static/description/index.html | 54 ++++++++++---------
18 files changed, 152 insertions(+), 103 deletions(-)
diff --git a/hr_contract_reference/README.rst b/hr_contract_reference/README.rst
index 0f7cb3d2613..bac8f3d4397 100644
--- a/hr_contract_reference/README.rst
+++ b/hr_contract_reference/README.rst
@@ -2,10 +2,13 @@
HR Contract Reference
=====================
-.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+..
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! source digest: sha256:483080b54ae663761df176dad6d06dc24a83d1703b93155e23e9837482ef6fb1
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
@@ -14,16 +17,16 @@ 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/15.0/hr_contract_reference
+ :target: https://github.com/OCA/hr/tree/16.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-15-0/hr-15-0-hr_contract_reference
+ :target: https://translation.odoo-community.org/projects/hr-16-0/hr-16-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/15.0
- :alt: Try me on Runbot
+.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=16.0
+ :alt: Try me on Runboat
-|badge1| |badge2| |badge3| |badge4| |badge5|
+|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
@@ -53,8 +56,8 @@ 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 to smash it by providing a detailed and welcomed
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -89,6 +92,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 a1aef3cdb00..ecc145b6696 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": "15.0.1.0.0",
+ "version": "16.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/ar.po b/hr_contract_reference/i18n/ar.po
index 68d8c9d9b76..b535792613d 100644
--- a/hr_contract_reference/i18n/ar.po
+++ b/hr_contract_reference/i18n/ar.po
@@ -19,13 +19,16 @@ msgstr ""
"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 ""
+
#. 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
#, fuzzy
-msgid "Employee Contract"
-msgstr "العقد"
+#~ msgid "Employee Contract"
+#~ msgstr "العقد"
diff --git a/hr_contract_reference/i18n/cs_CZ.po b/hr_contract_reference/i18n/cs_CZ.po
index 91d4ad2cb78..4b1181d20b5 100644
--- a/hr_contract_reference/i18n/cs_CZ.po
+++ b/hr_contract_reference/i18n/cs_CZ.po
@@ -19,12 +19,15 @@ msgstr ""
"Content-Transfer-Encoding: \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 "Contract"
+msgstr ""
+
#. 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"
-msgstr "Smlouva o zaměstnance"
+#~ msgid "Employee Contract"
+#~ msgstr "Smlouva o zaměstnance"
diff --git a/hr_contract_reference/i18n/de.po b/hr_contract_reference/i18n/de.po
index f1d68b294c5..6be42837984 100644
--- a/hr_contract_reference/i18n/de.po
+++ b/hr_contract_reference/i18n/de.po
@@ -19,12 +19,15 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Contract"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name
msgid "Contract Reference"
msgstr "Vertragsreferenz"
-#. module: hr_contract_reference
-#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Employee Contract"
-msgstr "Arbeitsvertrag"
+#~ msgid "Employee Contract"
+#~ msgstr "Arbeitsvertrag"
diff --git a/hr_contract_reference/i18n/es.po b/hr_contract_reference/i18n/es.po
index 5724f3edfea..d6898491c39 100644
--- a/hr_contract_reference/i18n/es.po
+++ b/hr_contract_reference/i18n/es.po
@@ -18,13 +18,16 @@ msgstr ""
"Content-Transfer-Encoding: \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 ""
+
#. 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
#, fuzzy
-msgid "Employee Contract"
-msgstr "Contrato"
+#~ msgid "Employee Contract"
+#~ msgstr "Contrato"
diff --git a/hr_contract_reference/i18n/fi.po b/hr_contract_reference/i18n/fi.po
index 0acec16c3ad..3a598f0ac19 100644
--- a/hr_contract_reference/i18n/fi.po
+++ b/hr_contract_reference/i18n/fi.po
@@ -18,13 +18,16 @@ msgstr ""
"Content-Transfer-Encoding: \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 ""
+
#. 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
#, fuzzy
-msgid "Employee Contract"
-msgstr "Sopimus"
+#~ msgid "Employee Contract"
+#~ msgstr "Sopimus"
diff --git a/hr_contract_reference/i18n/fr.po b/hr_contract_reference/i18n/fr.po
index 8df8644749f..c48135e1767 100644
--- a/hr_contract_reference/i18n/fr.po
+++ b/hr_contract_reference/i18n/fr.po
@@ -18,12 +18,15 @@ msgstr ""
"Content-Transfer-Encoding: \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 ""
+
#. 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"
-msgstr "Contrat"
+#~ msgid "Employee Contract"
+#~ msgstr "Contrat"
diff --git a/hr_contract_reference/i18n/hi_IN.po b/hr_contract_reference/i18n/hi_IN.po
index 13544181ba6..718cc1ddee9 100644
--- a/hr_contract_reference/i18n/hi_IN.po
+++ b/hr_contract_reference/i18n/hi_IN.po
@@ -19,13 +19,16 @@ msgstr ""
"Content-Transfer-Encoding: \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 ""
+
#. 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
#, fuzzy
-msgid "Employee Contract"
-msgstr "संपर्क "
+#~ msgid "Employee Contract"
+#~ msgstr "संपर्क "
diff --git a/hr_contract_reference/i18n/hr.po b/hr_contract_reference/i18n/hr.po
index 7f04133ab26..923291cbfee 100644
--- a/hr_contract_reference/i18n/hr.po
+++ b/hr_contract_reference/i18n/hr.po
@@ -16,15 +16,18 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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
+msgid "Contract"
+msgstr ""
#. 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"
-msgstr "Ugovor zaposlenika"
+#~ msgid "Employee Contract"
+#~ msgstr "Ugovor zaposlenika"
diff --git a/hr_contract_reference/i18n/hr_contract_reference.pot b/hr_contract_reference/i18n/hr_contract_reference.pot
index d41a43f8a75..c127093eabe 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 15.0\n"
+"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -14,11 +14,11 @@ msgstr ""
"Plural-Forms: \n"
#. module: hr_contract_reference
-#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name
-msgid "Contract Reference"
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Contract"
msgstr ""
#. module: hr_contract_reference
-#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Employee Contract"
+#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name
+msgid "Contract Reference"
msgstr ""
diff --git a/hr_contract_reference/i18n/it.po b/hr_contract_reference/i18n/it.po
index 06e1ab24578..df01dbe9a0b 100644
--- a/hr_contract_reference/i18n/it.po
+++ b/hr_contract_reference/i18n/it.po
@@ -18,12 +18,15 @@ msgstr ""
"Content-Transfer-Encoding: \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 ""
+
#. 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"
-msgstr "Contratto dei dipendenti"
+#~ msgid "Employee Contract"
+#~ msgstr "Contratto dei dipendenti"
diff --git a/hr_contract_reference/i18n/lt.po b/hr_contract_reference/i18n/lt.po
index cdbfff06486..71d4fabd29f 100644
--- a/hr_contract_reference/i18n/lt.po
+++ b/hr_contract_reference/i18n/lt.po
@@ -16,15 +16,18 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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
+msgid "Contract"
+msgstr ""
#. 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"
-msgstr "Darbuotojo kontraktas"
+#~ msgid "Employee Contract"
+#~ msgstr "Darbuotojo kontraktas"
diff --git a/hr_contract_reference/i18n/nl_NL.po b/hr_contract_reference/i18n/nl_NL.po
index 5f914e536f7..cb50b20b075 100644
--- a/hr_contract_reference/i18n/nl_NL.po
+++ b/hr_contract_reference/i18n/nl_NL.po
@@ -19,13 +19,16 @@ msgstr ""
"Content-Transfer-Encoding: \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 ""
+
#. 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
#, fuzzy
-msgid "Employee Contract"
-msgstr "Contract"
+#~ msgid "Employee Contract"
+#~ msgstr "Contract"
diff --git a/hr_contract_reference/i18n/pt_BR.po b/hr_contract_reference/i18n/pt_BR.po
index f4cbb8ca685..bc607ad3788 100644
--- a/hr_contract_reference/i18n/pt_BR.po
+++ b/hr_contract_reference/i18n/pt_BR.po
@@ -19,15 +19,18 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.3.2\n"
+#. module: hr_contract_reference
+#: model:ir.model,name:hr_contract_reference.model_hr_contract
+msgid "Contract"
+msgstr ""
+
#. module: hr_contract_reference
#: model:ir.model.fields,field_description:hr_contract_reference.field_hr_contract__name
msgid "Contract Reference"
msgstr "Referência do contrato"
-#. module: hr_contract_reference
-#: model:ir.model,name:hr_contract_reference.model_hr_contract
-msgid "Employee Contract"
-msgstr "Contrato do Empregado"
+#~ msgid "Employee Contract"
+#~ msgstr "Contrato do Empregado"
#~ msgid "Display Name"
#~ msgstr "Nome de Exibição"
diff --git a/hr_contract_reference/i18n/ro.po b/hr_contract_reference/i18n/ro.po
index 848a40ca210..8071f638cbe 100644
--- a/hr_contract_reference/i18n/ro.po
+++ b/hr_contract_reference/i18n/ro.po
@@ -19,13 +19,16 @@ msgstr ""
"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 ""
+
#. 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
#, fuzzy
-msgid "Employee Contract"
-msgstr "Contract"
+#~ msgid "Employee Contract"
+#~ msgstr "Contract"
diff --git a/hr_contract_reference/i18n/sl.po b/hr_contract_reference/i18n/sl.po
index b5ce1f0ee7c..921a52905ea 100644
--- a/hr_contract_reference/i18n/sl.po
+++ b/hr_contract_reference/i18n/sl.po
@@ -16,16 +16,19 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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"
+msgstr ""
#. 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
#, fuzzy
-msgid "Employee Contract"
-msgstr "Pogodba"
+#~ msgid "Employee Contract"
+#~ msgstr "Pogodba"
diff --git a/hr_contract_reference/static/description/index.html b/hr_contract_reference/static/description/index.html
index 1e6828194e5..ebbadca3989 100644
--- a/hr_contract_reference/static/description/index.html
+++ b/hr_contract_reference/static/description/index.html
@@ -1,20 +1,20 @@
-
-
+
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 1c4adb103e019dbb14f6fc779a4542edca3166a6 Mon Sep 17 00:00:00 2001
From: mymage
Date: Mon, 28 Jul 2025 06:58:01 +0000
Subject: [PATCH 30/31] 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 6c2696d5ca8e6b8908c3f0d7caa3c302ab365cc1 Mon Sep 17 00:00:00 2001
From: Bhavesh Heliconia
Date: Mon, 22 Dec 2025 15:00:07 +0530
Subject: [PATCH 31/31] [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, "/")