Skip to content

Commit

Permalink
[10.0][MIGRATION] Migrated module 'date_range' to V10
Browse files Browse the repository at this point in the history
  • Loading branch information
aesposito-onestein committed Oct 7, 2016
1 parent e1c0913 commit 5b189ab
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 13 deletions.
2 changes: 2 additions & 0 deletions date_range/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ Contributors
------------

* Laurent Mignon <[email protected]>
* Andrea Stirpe <[email protected]>
* Antonio Esposito <[email protected]>

Maintainer
----------
Expand Down
4 changes: 2 additions & 2 deletions date_range/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
{
"name": "Date Range",
"summary": "Manage all kind of date range",
"version": "9.0.1.0.0",
"version": "10.0.1.0.0",
"category": "Uncategorized",
"website": "https://odoo-community.org/",
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
'installable': False,
"installable": True,
"depends": [
"web",
],
Expand Down
6 changes: 3 additions & 3 deletions date_range/models/date_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp import api, fields, models
from openerp.tools.translate import _
from openerp.exceptions import ValidationError
from odoo import api, fields, models
from odoo.tools.translate import _
from odoo.exceptions import ValidationError


class DateRange(models.Model):
Expand Down
2 changes: 1 addition & 1 deletion date_range/models/date_range_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp import api, fields, models
from odoo import api, fields, models


class DateRangeType(models.Model):
Expand Down
4 changes: 2 additions & 2 deletions date_range/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_date_range_date_range,date_range.date_range,model_date_range,base.group_user,1,0,0,0
access_date_range_date_range_type,date_range.date_range_type,model_date_range_type,base.group_user,1,0,0,0
access_date_range_date_range_config,date_range.date_range.config,model_date_range,base.group_configuration,1,1,1,1
access_date_range_date_range_type_config,date_range.date_range_type.config,model_date_range_type,base.group_configuration,1,1,1,1
access_date_range_date_range_config,date_range.date_range.config,model_date_range,base.group_system,1,1,1,1
access_date_range_date_range_type_config,date_range.date_range_type.config,model_date_range_type,base.group_system,1,1,1,1
4 changes: 2 additions & 2 deletions date_range/tests/test_date_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from openerp.tests.common import TransactionCase
from openerp.exceptions import ValidationError
from odoo.tests.common import TransactionCase
from odoo.exceptions import ValidationError


class DateRangeTest(TransactionCase):
Expand Down
2 changes: 1 addition & 1 deletion date_range/tests/test_date_range_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)nses/agpl).

from openerp.tests.common import TransactionCase
from odoo.tests.common import TransactionCase
from dateutil.rrule import MONTHLY


Expand Down
2 changes: 1 addition & 1 deletion date_range/tests/test_date_range_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from openerp.tests.common import TransactionCase
from odoo.tests.common import TransactionCase


class DateRangeTypeTest(TransactionCase):
Expand Down
2 changes: 1 addition & 1 deletion date_range/wizard/date_range_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp import api, fields, models
from odoo import api, fields, models
from dateutil.rrule import (rrule,
YEARLY,
MONTHLY,
Expand Down

0 comments on commit 5b189ab

Please sign in to comment.