Skip to content

Commit d2e5fe7

Browse files
committed
[MIG] hr_employee_second_lastname: Migration to 19.0
1 parent e87ab50 commit d2e5fe7

6 files changed

Lines changed: 36 additions & 32 deletions

File tree

hr_employee_second_lastname/README.rst

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
15
=========================================
26
HR Employee First Name and Two Last Names
37
=========================================
@@ -13,17 +17,17 @@ HR Employee First Name and Two Last Names
1317
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1418
:target: https://odoo-community.org/page/development-status
1519
:alt: Beta
16-
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
1721
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1822
:alt: License: AGPL-3
1923
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github
20-
:target: https://github.com/OCA/hr/tree/18.0/hr_employee_second_lastname
24+
:target: https://github.com/OCA/hr/tree/19.0/hr_employee_second_lastname
2125
:alt: OCA/hr
2226
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/hr-18-0/hr-18-0-hr_employee_second_lastname
27+
:target: https://translation.odoo-community.org/projects/hr-19-0/hr-19-0-hr_employee_second_lastname
2428
:alt: Translate me on Weblate
2529
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=19.0
2731
:alt: Try me on Runboat
2832

2933
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -50,7 +54,7 @@ Bug Tracker
5054
Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr/issues>`_.
5155
In case of trouble, please check there if your issue has already been reported.
5256
If you spotted it first, help us to smash it by providing a detailed and welcomed
53-
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_employee_second_lastname%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
57+
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_employee_second_lastname%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5458

5559
Do not contact contributors directly about support or help with technical issues.
5660

@@ -65,8 +69,8 @@ Authors
6569
Contributors
6670
------------
6771

68-
- Luis Escobar <lescobar@vauxoo.com>
69-
- Hugo Adan <hugo@vauxoo.com>
72+
- Luis Escobar <lescobar@vauxoo.com>
73+
- Hugo Adan <hugo@vauxoo.com>
7074

7175
Maintainers
7276
-----------
@@ -89,6 +93,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
8993

9094
|maintainer-luisg123v|
9195

92-
This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/18.0/hr_employee_second_lastname>`_ project on GitHub.
96+
This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/19.0/hr_employee_second_lastname>`_ project on GitHub.
9397

9498
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

hr_employee_second_lastname/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
22
{
33
"name": "HR Employee First Name and Two Last Names",
4-
"version": "18.0.1.0.0",
4+
"version": "19.0.1.0.0",
55
"author": "Vauxoo, Odoo Community Association (OCA)",
66
"maintainers": ["luisg123v"],
77
"website": "https://github.com/OCA/hr",
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
from . import hr_employee_base
21
from . import hr_employee

hr_employee_second_lastname/models/hr_employee.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import logging
22

3-
from odoo import api, models
3+
from odoo import api, fields, models
44

55
from odoo.addons.hr_employee_firstname.models.hr_employee import UPDATE_PARTNER_FIELDS
66

@@ -12,6 +12,10 @@
1212
class HrEmployee(models.Model):
1313
_inherit = "hr.employee"
1414

15+
firstname = fields.Char("First name")
16+
lastname = fields.Char("Last name")
17+
lastname2 = fields.Char("Second last name")
18+
1519
@api.model
1620
def _get_name_lastnames(self, lastname, firstname, lastname2=None):
1721
order = self._get_names_order()

hr_employee_second_lastname/models/hr_employee_base.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

hr_employee_second_lastname/static/description/index.html

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>HR Employee First Name and Two Last Names</title>
6+
<title>README.rst</title>
77
<style type="text/css">
88

99
/*
@@ -360,16 +360,21 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document" id="hr-employee-first-name-and-two-last-names">
364-
<h1 class="title">HR Employee First Name and Two Last Names</h1>
363+
<div class="document">
365364

365+
366+
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367+
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368+
</a>
369+
<div class="section" id="hr-employee-first-name-and-two-last-names">
370+
<h1>HR Employee First Name and Two Last Names</h1>
366371
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367372
!! This file is generated by oca-gen-addon-readme !!
368373
!! changes will be overwritten. !!
369374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370375
!! source digest: sha256:52c05367ec1f1cb684bdfc69407a7b0da9ab5435d8915013fd942ecc567cd625
371376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/hr/tree/18.0/hr_employee_second_lastname"><img alt="OCA/hr" src="https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/hr-18-0/hr-18-0-hr_employee_second_lastname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/hr&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/hr/tree/19.0/hr_employee_second_lastname"><img alt="OCA/hr" src="https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/hr-19-0/hr-19-0-hr_employee_second_lastname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/hr&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373378
<p>This module allows you to add firstname and lastnames (Father an Mother
374379
Last Name) in employee form, and concatenate both in name field.</p>
375380
<p><strong>Table of contents</strong></p>
@@ -386,7 +391,7 @@ <h1 class="title">HR Employee First Name and Two Last Names</h1>
386391
</ul>
387392
</div>
388393
<div class="section" id="usage">
389-
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
394+
<h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
390395
<ol class="arabic simple">
391396
<li>Go to <em>Employees</em></li>
392397
<li>On the employee form view you will have 3 separate fields, one for
@@ -395,30 +400,30 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
395400
</ol>
396401
</div>
397402
<div class="section" id="bug-tracker">
398-
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
403+
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
399404
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/hr/issues">GitHub Issues</a>.
400405
In case of trouble, please check there if your issue has already been reported.
401406
If you spotted it first, help us to smash it by providing a detailed and welcomed
402-
<a class="reference external" href="https://github.com/OCA/hr/issues/new?body=module:%20hr_employee_second_lastname%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
407+
<a class="reference external" href="https://github.com/OCA/hr/issues/new?body=module:%20hr_employee_second_lastname%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
403408
<p>Do not contact contributors directly about support or help with technical issues.</p>
404409
</div>
405410
<div class="section" id="credits">
406-
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
411+
<h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
407412
<div class="section" id="authors">
408-
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
413+
<h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
409414
<ul class="simple">
410415
<li>Vauxoo</li>
411416
</ul>
412417
</div>
413418
<div class="section" id="contributors">
414-
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
419+
<h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
415420
<ul class="simple">
416421
<li>Luis Escobar &lt;<a class="reference external" href="mailto:lescobar&#64;vauxoo.com">lescobar&#64;vauxoo.com</a>&gt;</li>
417422
<li>Hugo Adan &lt;<a class="reference external" href="mailto:hugo&#64;vauxoo.com">hugo&#64;vauxoo.com</a>&gt;</li>
418423
</ul>
419424
</div>
420425
<div class="section" id="maintainers">
421-
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
426+
<h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
422427
<p>This module is maintained by the OCA.</p>
423428
<a class="reference external image-reference" href="https://odoo-community.org">
424429
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -428,10 +433,11 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
428433
promote its widespread use.</p>
429434
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
430435
<p><a class="reference external image-reference" href="https://github.com/luisg123v"><img alt="luisg123v" src="https://github.com/luisg123v.png?size=40px" /></a></p>
431-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/hr/tree/18.0/hr_employee_second_lastname">OCA/hr</a> project on GitHub.</p>
436+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/hr/tree/19.0/hr_employee_second_lastname">OCA/hr</a> project on GitHub.</p>
432437
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
433438
</div>
434439
</div>
435440
</div>
441+
</div>
436442
</body>
437443
</html>

0 commit comments

Comments
 (0)