-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
[11.0][MIG] event_registration_cancel_reason: Migration to 11.0 #120
Conversation
============================================= 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
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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., " |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove copyrights.
@chienandalu you can re-review |
There was a problem hiding this 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.
@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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok then 👍
137ddae
to
c5d8147
Compare
No description provided.