Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.0][MIG] event_registration_cancel_reason: Migration to 11.0 #120

Merged

Conversation

cristinamartinrod
Copy link
Member

No description provided.

pedrobaeza and others added 5 commits September 25, 2018 09:14
=============================================
Reasons for event registrations cancellations
=============================================

This module allows to add a predefined reason why a registration for an event
is cancelled.

Configuration
=============

Go to *Marketing > Configuration > Events > Registrations cancel reasons* for
setting the possible reasons you want to handle. You can also set if a reason
is only available for certain events or, if you leave it empty, for all.

Usage
=====

Go to *Marketing > Events > Events*, enter into the details or any of the
events, and press the red circle button in the right part of any of the
registrations. A new screen will appear asking you to enter the reason why the
registration is cancelled.

You will get also the same screen when pressing the button
*Cancel registration* from the details view of a registration in
*Marketing > Events > Registrations*. On this object, you can group by the
cancel reason in the list, calendar or graph view.
* Move cancel_reason_id so it's visible to non-technical user
* Overide do_draft method to set cancel_reason_id to False when Set to unconfirmed
…ing and fix tests.

Fix OCA#35. When an event had no type, it was not getting in the mapping because of the way Odoo generates recordsets.
- Updated README
- Updated views
- Updated tests
- Improve tests to achieve full test coverage
Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on runbot 👍 Just check Travis LINT fails and some minor points marked below:

# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import models
from . import wizard
from . import wizard
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing blank line at EOF

event_registration_cancel_reason/README.rst Outdated Show resolved Hide resolved
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have these flake8 errors:

event_registration_cancel_reason/__manifest__.py:2:44: W291 trailing whitespace
event_registration_cancel_reason/models/event_registration.py:2:44: W291 trailing whitespace
event_registration_cancel_reason/tests/test_event_registration_cancel_reason.py:2:44: W291 trailing whitespace
event_registration_cancel_reason/wizard/event_registration_cancel_log_reason.py:2:44: W291 trailing whitespace

# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import models
from . import wizard
from . import wizard
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't remove final line

# Copyright 2016 Antiun Ingeniería S.L.
# Copyright 2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2016 Tecnativa - Pedro M. Baeza
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove copyright on __init__ (it's a bad old habit).

~~~~~~~

* Tecnativa
* Antiun Ingeniería S.L.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to put this file. Authors are put automatically by the script. This file is intended for extra credits, like funders or so.

# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Reasons for event registrations cancellations",
"version": "9.0.1.0.0",
"version": "11.0.1.0.0",
"license": "AGPL-3",
"author": "Antiun Ingeniería S.L., "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this company. It's Rafa's old one, and the IP now has been passed to Tecnativa.

# Copyright 2016 Antiun Ingeniería S.L.
# Copyright 2016 Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
# Copyright 2016 Tecnativa - Pedro M. Baeza
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove copyrights.

@pedrobaeza
Copy link
Member

@chienandalu you can re-review

@pedrobaeza pedrobaeza added this to the 11.0 milestone Sep 25, 2018
Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cristinamartinrod You didn't regenerate the README from the new parts.

@pedrobaeza
Copy link
Member

@chienandalu she is not able to do it right now with Mac. We are dealing with that, and I'll do it when squashing, but meanwhile, let out that requirement.

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok then 👍

@pedrobaeza pedrobaeza force-pushed the 11.0-mig-event_registration_cancel_reason branch from 137ddae to c5d8147 Compare September 25, 2018 18:24
@pedrobaeza pedrobaeza merged commit f587935 into OCA:11.0 Sep 25, 2018
@pedrobaeza pedrobaeza deleted the 11.0-mig-event_registration_cancel_reason branch September 25, 2018 18:34
@pedrobaeza pedrobaeza mentioned this pull request Sep 25, 2018
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants