-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
[8.0] event contact person #37
Conversation
Hi @mikevhe18 , Odoo already has this fields, why do you want to duplicate this info? |
@rafaelbn it's because sometimes events can have one or more contact person. |
OK, thanks. 👍 Please @yajo take a review here. |
@@ -0,0 +1,15 @@ | |||
# -*- coding: utf-8 -*- | |||
# © 2016 Michael Viriyananda | |||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agp |
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.
Wrong URL, as in all other headers.
Good work overall @mikevhe18, please fix those little details to get approval. Thanks. |
Thanks @yajo. |
{ | ||
'name': 'Event Contact Person', | ||
'version': '8.0.1.0.0', | ||
'summary': 'Add a contact persons to event', |
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 the "a"
Tested on runbot 👍 |
👍 |
Hi @OCA/crm-sales-marketing-maintainers . This PR is ready to be merged (3 reviews) |
For me the only problem is the name: you can say the same with the name event_contact, as person is not a relevant part in my opinion. What do you think? |
Good point, partners can be companies too. |
Agree |
@pedrobaeza @yajo @andhit-r I've made a changes, please review this module again. Thank You.. |
Changes Unknown when pulling 16b88a2 on mikevhe18:8.0-event_contact_person into * on OCA:8.0*. |
Please don't put plurals in module name. The module name should be event_contact |
Changes Unknown when pulling b613fa6 on mikevhe18:8.0-event_contact_person into * on OCA:8.0*. |
class event_event(models.Model): | ||
_inherit = 'event.event' | ||
|
||
contacts_ids = fields.Many2many( |
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.
The name must be contact_ids
, as the plural is only used in the _ids
part
Changes Unknown when pulling 3a22fdc on mikevhe18:8.0-event_contact_person into * on OCA:8.0*. |
Finally got it! Thanks 😉 👍 |
👍 |
Thanks 👍 |
My goal is to create a module that can display the contact person at the event page on the website.
So before I make that module, i make this module which has the function to add the contact person fields in the event. Thanks