Skip to content

Commit

Permalink
[MIG] membership_variable_period: Migration to 10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chienandalu committed Aug 14, 2017
1 parent 43ea480 commit 2b025a6
Show file tree
Hide file tree
Showing 15 changed files with 140 additions and 677 deletions.
24 changes: 14 additions & 10 deletions membership_variable_period/README.rst
@@ -1,3 +1,7 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

===============================
Variable period for memberships
===============================
Expand Down Expand Up @@ -29,25 +33,25 @@ membership in quantity and interval.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/208/8.0

:target: https://runbot.odoo-community.org/runbot/208/10.0

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/vertical_association/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
`here <https://github.com/OCA/vertical_association/issues/new?body=module:%20membership_variable_period%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/vertical-association/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.

Credits
=======

Contributors
------------

* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
* Antonio Espinosa <antonio.espinosa@tecnativa.com>
* David Vidal <david.vidal@tecnativa.com>

Icon
----
Expand All @@ -60,14 +64,14 @@ Original clipart from:
Maintainer
----------

.. image:: http://odoo-community.org/logo.png
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org
:target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.
To contribute to this module, please visit https://odoo-community.org.
9 changes: 0 additions & 9 deletions membership_variable_period/README.rst.rej

This file was deleted.

7 changes: 0 additions & 7 deletions membership_variable_period/__init__.py.rej

This file was deleted.

17 changes: 8 additions & 9 deletions membership_variable_period/__manifest__.py
@@ -1,22 +1,21 @@
# -*- coding: utf-8 -*-
# (c) 2015 Antiun Ingeniería S.L. - Pedro M. Baeza
# Copyright 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2016 Antonio Espinosa <antonio.espinosa@tecnativa.com>
# Copyright 2017 David Vidal <david.vidal@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
'name': 'Variable period for memberships',
'version': '8.0.1.0.0',
'version': '10.0.2.0.0',
'license': 'AGPL-3',
'category': 'Association',
'author': 'Antiun Ingeniería S.L., '
'Serv. Tecnol. Avanzados - Pedro M. Baeza, '
'author': 'Tecnativa, '
'Odoo Community Association (OCA)',
'website': 'http://www.antiun.com',
'website': 'https://odoo-community.org/',
'depends': [
'membership',
'membership_extension',
],
'data': [
'views/product_template_views.xml',
'views/res_partner_views.xml',
'data/membership_data.xml',
],
'installable': False,
"installable": True,
}
97 changes: 0 additions & 97 deletions membership_variable_period/i18n/membership_variable_period.pot

This file was deleted.

10 changes: 0 additions & 10 deletions membership_variable_period/models/__init__.py.rej

This file was deleted.

7 changes: 3 additions & 4 deletions membership_variable_period/models/account_invoice.py
@@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Antiun Ingeniería S.L. - Pedro M. Baeza
# Copyright 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2016 Antonio Espinosa <antonio.espinosa@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from openerp import models, api, fields
from odoo import api, fields, models
from datetime import timedelta
import math

Expand All @@ -12,7 +11,7 @@ class AccountInvoiceLine(models.Model):
_inherit = "account.invoice.line"

def _prepare_membership_line(self, invoice, product, price_unit, line_id,
qty=1):
qty=1.0):
qty = int(math.ceil(qty))
date_from = fields.Date.from_string(
invoice.date_invoice or fields.Date.today())
Expand Down
31 changes: 0 additions & 31 deletions membership_variable_period/models/account_invoice.py.rej

This file was deleted.

5 changes: 2 additions & 3 deletions membership_variable_period/models/product_template.py
@@ -1,10 +1,9 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Antiun Ingeniería S.L. - Pedro M. Baeza
# Copyright 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2016 Antonio Espinosa <antonio.espinosa@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

import math
from openerp import models, fields, api
from odoo import api, fields, models
from datetime import timedelta
from dateutil.relativedelta import relativedelta

Expand Down
42 changes: 0 additions & 42 deletions membership_variable_period/models/product_template.py.rej

This file was deleted.

7 changes: 0 additions & 7 deletions membership_variable_period/tests/__init__.py.rej

This file was deleted.

0 comments on commit 2b025a6

Please sign in to comment.