Browse Source

[MIG] subscription_action to 10.0

pull/1468/head
Holger Brunn 7 years ago
committed by Jairo Llopis
parent
commit
14809e76bc
  1. 4
      subscription_action/README.rst
  2. 2
      subscription_action/__init__.py
  3. 4
      subscription_action/__manifest__.py
  4. 2
      subscription_action/models/__init__.py
  5. 4
      subscription_action/models/subscription_subscription.py
  6. 7
      subscription_action/tests/test_subscription_action.py

4
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
<https://github.com/OCA/server-tools-9.0/issues>`_. In case of trouble, please
<https://github.com/OCA/server-tools-10.0/issues>`_. 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.

2
subscription_action/__init__.py

@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# © 2017 Therp BV <http://therp.nl>
# © 2017-2018 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models

4
subscription_action/__openerp__.py → subscription_action/__manifest__.py

@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
# © 2017 Therp BV <http://therp.nl>
# © 2017-2018 Therp BV <http://therp.nl>
# 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",

2
subscription_action/models/__init__.py

@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# © 2017 Therp BV <http://therp.nl>
# © 2017-2018 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import subscription_subscription

4
subscription_action/models/subscription_subscription.py

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# © 2017 Therp BV <http://therp.nl>
# © 2017-2018 Therp BV <http://therp.nl>
# 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):

7
subscription_action/tests/test_subscription_action.py

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# © 2017 Therp BV <http://therp.nl>
# © 2017-2018 Therp BV <http://therp.nl>
# 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(

Loading…
Cancel
Save