Skip to content

Commit

Permalink
[MIG] Migration of hr_contract_signature to 10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpeiffer committed May 17, 2017
1 parent c143bc1 commit a58f622
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 103 deletions.
2 changes: 0 additions & 2 deletions hr_contract_signature/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# -*- coding: utf-8 -*-
from . import models
from .pre_install import rename_module
31 changes: 4 additions & 27 deletions hr_contract_signature/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,10 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# This file is part of hr_contract_signature,
# an Odoo module.
#
# Authors: Stéphane Bidoul
# Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>)
#
# hr_contract_signature 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.
#
# hr_contract_signature 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 hr_contract_signature.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
# Copyright 2015-2017 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "HR Contract Signature",
"version": "8.0.1.0.0",
"version": "10.0.1.0.0",
"author": "ACSONE SA/NV",
"website": "http://acsone.eu",
"category": "Human Resources",
Expand All @@ -37,6 +15,5 @@
"data": [
"views/hr_contract_view.xml"
],
'pre_init_hook': 'rename_module',
'installable': False,
'installable': True,
}
1 change: 0 additions & 1 deletion hr_contract_signature/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import hr_contract
30 changes: 4 additions & 26 deletions hr_contract_signature/models/hr_contract.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,11 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# This file is part of hr_contract_signature,
# an Odoo module.
#
# Authors: Stéphane Bidoul
# Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>)
#
# hr_contract_signature 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.
#
# hr_contract_signature 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 hr_contract_signature.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
# Copyright 2015-2017 ACSONE SA/NV (<http://acsone.eu>)
# 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"

contract_signed = fields.Boolean(
Expand Down
47 changes: 0 additions & 47 deletions hr_contract_signature/pre_install.py

This file was deleted.

6 changes: 6 additions & 0 deletions setup/hr_contract_signature/.eggs/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins.

This directory caches those eggs to prevent repeated downloads.

However, it is safe to delete this directory.

1 change: 1 addition & 0 deletions setup/hr_contract_signature/odoo/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
1 change: 1 addition & 0 deletions setup/hr_contract_signature/odoo/addons/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
6 changes: 6 additions & 0 deletions setup/hr_contract_signature/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit a58f622

Please sign in to comment.