Browse Source

[10.0][MIGRATION] Migrated module 'date_range' to V10

pull/25/head
Antonio Esposito 8 years ago
committed by Pedro M. Baeza
parent
commit
fddf1dd343
  1. 2
      date_range/README.rst
  2. 2
      date_range/__manifest__.py
  3. 13
      date_range/i18n/es.po
  4. 6
      date_range/models/date_range.py
  5. 2
      date_range/models/date_range_type.py
  6. 4
      date_range/security/ir.model.access.csv
  7. 4
      date_range/tests/test_date_range.py
  8. 2
      date_range/tests/test_date_range_generator.py
  9. 2
      date_range/tests/test_date_range_type.py
  10. 2
      date_range/wizard/date_range_generator.py

2
date_range/README.rst

@ -63,7 +63,7 @@ To configure this module, you need to:
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot :alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/9.0
:target: https://runbot.odoo-community.org/runbot/149/10.0
Known issues / Roadmap Known issues / Roadmap

2
date_range/__openerp__.py → date_range/__manifest__.py

@ -4,7 +4,7 @@
{ {
"name": "Date Range", "name": "Date Range",
"summary": "Manage all kind of date range", "summary": "Manage all kind of date range",
"version": "9.0.1.0.0",
"version": "10.0.1.0.0",
"category": "Uncategorized", "category": "Uncategorized",
"website": "https://odoo-community.org/", "website": "https://odoo-community.org/",
"author": "ACSONE SA/NV, Odoo Community Association (OCA)", "author": "ACSONE SA/NV, Odoo Community Association (OCA)",

13
date_range/i18n/es.po

@ -27,28 +27,27 @@ msgstr ""
#: code:addons/date_range/models/date_range.py:71 #: code:addons/date_range/models/date_range.py:71
#, python-format #, python-format
msgid "%s overlaps %s" msgid "%s overlaps %s"
msgstr ""
msgstr "%s solapa con %s"
#. module: date_range #. module: date_range
#: sql_constraint:date.range:0 #: sql_constraint:date.range:0
msgid "A date range must be unique per company !" msgid "A date range must be unique per company !"
msgstr ""
msgstr "El rango de fechas debe ser único por compañía"
#. module: date_range #. module: date_range
#: sql_constraint:date.range.type:0 #: sql_constraint:date.range.type:0
msgid "A date range type must be unique per company !" msgid "A date range type must be unique per company !"
msgstr ""
msgstr "El tipo de rango de fechas debe ser único por compañía"
#. module: date_range #. module: date_range
#: model:ir.model.fields,field_description:date_range.field_date_range_active #: model:ir.model.fields,field_description:date_range.field_date_range_active
#: model:ir.model.fields,field_description:date_range.field_date_range_type_active #: model:ir.model.fields,field_description:date_range.field_date_range_type_active
msgid "Active" msgid "Active"
msgstr ""
#. module: date_range #. module: date_range
#: model:ir.model.fields,field_description:date_range.field_date_range_type_allow_overlap #: model:ir.model.fields,field_description:date_range.field_date_range_type_allow_overlap
msgid "Allow overlap" msgid "Allow overlap"
msgstr ""
msgstr "Permitir solapamiento"
#. module: date_range #. module: date_range
#: model:ir.ui.view,arch_db:date_range.date_range_generator_view_form #: model:ir.ui.view,arch_db:date_range.date_range_generator_view_form
@ -60,7 +59,7 @@ msgstr "Cancelar"
#: model:ir.model.fields,field_description:date_range.field_date_range_generator_company_id #: model:ir.model.fields,field_description:date_range.field_date_range_generator_company_id
#: model:ir.model.fields,field_description:date_range.field_date_range_type_company_id #: model:ir.model.fields,field_description:date_range.field_date_range_type_company_id
msgid "Company" msgid "Company"
msgstr ""
msgstr "Compañía"
#. module: date_range #. module: date_range
#: model:ir.model.fields,field_description:date_range.field_date_range_create_uid #: model:ir.model.fields,field_description:date_range.field_date_range_create_uid
@ -79,7 +78,7 @@ msgstr "Creado en"
#. module: date_range #. module: date_range
#: model:ir.ui.view,arch_db:date_range.view_date_range_form_view #: model:ir.ui.view,arch_db:date_range.view_date_range_form_view
msgid "Date Range" msgid "Date Range"
msgstr ""
msgstr "Rango de fechas"
#. module: date_range #. module: date_range
#: model:ir.ui.view,arch_db:date_range.view_date_range_type_form_view #: model:ir.ui.view,arch_db:date_range.view_date_range_type_form_view

6
date_range/models/date_range.py

@ -2,9 +2,9 @@
# © 2016 ACSONE SA/NV (<http://acsone.eu>) # © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # 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): class DateRange(models.Model):

2
date_range/models/date_range_type.py

@ -2,7 +2,7 @@
# © 2016 ACSONE SA/NV (<http://acsone.eu>) # © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # 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): class DateRangeType(models.Model):

4
date_range/security/ir.model.access.csv

@ -1,5 +1,5 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink 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,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_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
date_range/tests/test_date_range.py

@ -2,8 +2,8 @@
# © 2016 ACSONE SA/NV (<http://acsone.eu>) # © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) # 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): class DateRangeTest(TransactionCase):

2
date_range/tests/test_date_range_generator.py

@ -2,7 +2,7 @@
# © 2016 ACSONE SA/NV (<http://acsone.eu>) # © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)nses/agpl). # 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 from dateutil.rrule import MONTHLY

2
date_range/tests/test_date_range_type.py

@ -2,7 +2,7 @@
# © 2016 ACSONE SA/NV (<http://acsone.eu>) # © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) # 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): class DateRangeTypeTest(TransactionCase):

2
date_range/wizard/date_range_generator.py

@ -2,7 +2,7 @@
# © 2016 ACSONE SA/NV (<http://acsone.eu>) # © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # 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, from dateutil.rrule import (rrule,
YEARLY, YEARLY,
MONTHLY, MONTHLY,

Loading…
Cancel
Save