diff --git a/subscription_action/README.rst b/subscription_action/README.rst index aea5275a4..cbcfd6a8a 100644 --- a/subscription_action/README.rst +++ b/subscription_action/README.rst @@ -24,13 +24,13 @@ Usage .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :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 Bug Tracker =========== Bugs are tracked on `GitHub Issues -`_. In case of trouble, please +`_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback. diff --git a/subscription_action/__init__.py b/subscription_action/__init__.py index 86cb334c3..f534980b7 100644 --- a/subscription_action/__init__.py +++ b/subscription_action/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- -# © 2017 Therp BV +# © 2017-2018 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import models diff --git a/subscription_action/__openerp__.py b/subscription_action/__manifest__.py similarity index 86% rename from subscription_action/__openerp__.py rename to subscription_action/__manifest__.py index a5d07215c..c919a2c4c 100644 --- a/subscription_action/__openerp__.py +++ b/subscription_action/__manifest__.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- -# © 2017 Therp BV +# © 2017-2018 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Actions for recurring documents", - "version": "9.0.1.0.0", + "version": "10.0.1.0.0", "author": "Therp BV,Odoo Community Association (OCA)", "license": "AGPL-3", "category": "Extra Tools", diff --git a/subscription_action/models/__init__.py b/subscription_action/models/__init__.py index 113bde00d..d8fa90afb 100644 --- a/subscription_action/models/__init__.py +++ b/subscription_action/models/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- -# © 2017 Therp BV +# © 2017-2018 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import subscription_subscription diff --git a/subscription_action/models/subscription_subscription.py b/subscription_action/models/subscription_subscription.py index 5753523b2..497269008 100644 --- a/subscription_action/models/subscription_subscription.py +++ b/subscription_action/models/subscription_subscription.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- -# © 2017 Therp BV +# © 2017-2018 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import api, fields, models +from odoo import api, fields, models class SubscriptionSubscription(models.Model): diff --git a/subscription_action/tests/test_subscription_action.py b/subscription_action/tests/test_subscription_action.py index 78048c42d..3e38c42a4 100644 --- a/subscription_action/tests/test_subscription_action.py +++ b/subscription_action/tests/test_subscription_action.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- -# © 2017 Therp BV +# © 2017-2018 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp.tests.common import TransactionCase +from odoo.tests.common import TransactionCase class TestSubscriptionAction(TransactionCase): @@ -29,6 +29,9 @@ class TestSubscriptionAction(TransactionCase): ], }).id, }) + self.assertEqual( + subscription.model_id.model, subscription.doc_source._name + ) subscription.set_process() subscription.model_copy() self.assertEqual(