Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] hr_employee_firstname: Migration to 18.0 #1397

Merged
merged 42 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
39faa49
[ADD] hr_employee_firstname
feketemihai Apr 24, 2015
4e55fbd
Remove field name related, change init script, add unittests
May 3, 2015
5646b75
[FIX+IMP] hr_employee_firstname: Several things:
adrienpeiffer Aug 13, 2015
a3421ed
[IMP][hr_employee_firstname] Avoid to update partners without reason
adrienpeiffer Sep 4, 2015
bd7fbc1
[FIX] Update tests in hr_employee_firstname - failing travis
Nov 10, 2015
f83df0d
[REF] hr_employee_firstname: Split names at module install to get the…
feketemihai May 11, 2016
b2e60ec
[MIG] hr_employee_firstname: Migrated to 10.0 (#276)
espo-tony Jan 24, 2017
257469a
[MIG] hr_employee_firstname: Migration to version 11.0
Nov 14, 2017
892ec93
[FIX] employee_firstname: test (#427)
feketemihai Mar 7, 2018
e542fe9
[11.0][FIX] Fix dangerous use of 'replace' from hr.employee view.
ddufresne Apr 9, 2018
fdcc0e9
[12.0][MIG] hr_employee_firstname
astirpe Mar 28, 2019
b08e054
[FIX/IMP] Make required attributes dynamic
astirpe Apr 8, 2019
a37d32b
[13.0][MIG] hr_employee_firstname
astirpe Dec 6, 2019
6080f1b
pre-commit
astirpe Dec 6, 2019
e5b43ba
pre-commit update
OCA-git-bot Mar 14, 2020
a70ba24
[13.0][FIX] hr_employee_firstname : testscript
Saran440 Mar 26, 2020
f070a6f
[IMP] hr_employee_firstname: ease extension
astirpe Aug 27, 2020
20f6385
hr_employee_firstname 13.0.1.0.1
OCA-git-bot Sep 1, 2020
4bcfc4f
[MIG] hr_employee_firstname: Migration to 14.0
luistorresm Oct 12, 2020
aba958f
[REF] hr_employee_firstname: Removed partner_firstname dependency
Oct 28, 2020
eaca361
[IMP] update dotfiles [ci skip]
OCA-git-bot Nov 1, 2020
b2f54d2
hr_employee_firstname 14.0.2.0.0
OCA-git-bot Nov 2, 2020
28f555e
[FIX] hr_employee_firstname: Avoid access error on employee update
luistorresm Feb 16, 2021
67b9411
hr_employee_firstname 14.0.2.0.1
OCA-git-bot Feb 17, 2021
7f099e8
[FIX] hr_employee_firstname: Move fields to common employee
hugho-ad Jun 12, 2021
c5cceec
hr_employee_firstname 14.0.3.0.0
OCA-git-bot Jun 12, 2021
dd32419
[MIG] hr_employee_firstname: Migration to 15.0
luistorresm Oct 18, 2021
139ea4a
[MIG] hr_employee_firstname: Migration to 16.0
luistorresm Nov 5, 2022
6186d56
[UPD] README.rst
OCA-git-bot Nov 5, 2022
a453dd1
[FIX] hr_employee_firstname: Improved create on employee
luistorresm Nov 7, 2022
7e70006
[16.0][FIX] test refresh->invalidate_recordset
FernandoRomera Dec 21, 2022
426ef60
hr_employee_firstname 16.0.1.0.1
OCA-git-bot Dec 21, 2022
5ca3a01
[UPD] README.rst
OCA-git-bot Sep 3, 2023
9f766dd
[IMP] hr_employee_firstname: rename hooks file
andreagidaltig Nov 6, 2023
3102e50
[BOT] post-merge updates
OCA-git-bot Nov 8, 2023
06dfa95
[IMP] hr_employee_firstname: pre-commit stuff
andreagidaltig Nov 16, 2023
1d311d1
[MIG] hr_employee_firstname: Migration to 17.0
andreagidaltig Nov 14, 2023
ef66013
[BOT] post-merge updates
OCA-git-bot Nov 16, 2023
a6a9d5a
[FIX] hr_employee_firstname: fix DeprecationWarning
edy1192 Oct 30, 2024
c5b7bd7
[BOT] post-merge updates
OCA-git-bot Oct 30, 2024
a4b8da6
[IMP] hr_employee_firstname: pre-commit auto fixes
edy1192 Oct 30, 2024
7576692
[MIG] hr_employee_firstname: Migration to 18.0
edy1192 Oct 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hr_employee_firstname/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "HR Employee First Name, Last Name",
"version": "17.0.1.0.1",
"version": "18.0.1.0.0",
"author": "Savoir-faire Linux, "
"Fekete Mihai (Forest and Biomass Services Romania), "
"Onestein, "
Expand Down
2 changes: 1 addition & 1 deletion hr_employee_firstname/tests/test_hr_employee_firstname.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import odoo
from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase
from odoo.tools import submap
from odoo.tools.misc import submap
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

I couldn't find any related change that doesn't allow the previous syntax, and I think importing methods directly from odoo.tools is preferred.

If really required, it might be a good idea to document it in the commit description.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I ran the tests to verify that they worked fine I got this error:

File "/home/odoo/instance/extra_addons/hr/hr_employee_firstname/tests/__init__.py", line 3, in <module>
   from . import test_hr_employee_firstname
 File "/home/odoo/instance/extra_addons/hr/hr_employee_firstname/tests/test_hr_employee_firstname.py", line 8, in <module>
   from odoo.tools import submap
ImportError: cannot import name 'submap' from 'odoo.tools' (/home/odoo/instance/odoo/odoo/tools/__init__.py)

I tried to import the tools library using from odoo import tools and then tools.submap but got the same error.



class TestEmployeeFirstname(TransactionCase):
Expand Down
Loading