-
-
Notifications
You must be signed in to change notification settings - Fork 198
[19.0] [MIG] partner_event : migration to 19.0 #482
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
Open
nihelgabsi-acsone
wants to merge
47
commits into
OCA:19.0
Choose a base branch
from
acsone:19.0-mig-partner_event
base: 19.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
c236d0b
[ADD] partner event addon
antespi 08669d0
Slovene translations added
sysadminmatmoz b3803b5
Auto create partners in event registrations
8b77f44
Do not store registration counts.
yajo 28e86ac
Propagate partner changes and show errors when registering partners (…
antespi 669fce0
[MIG] partner_event: Migration to 9.0
cubells 6a8c546
[MIG] partner_event: Migration to 10.0
chienandalu ce397ab
[10.0][IMP] partner_event: Set attendee partner
sergio-teruel 28174ca
[IMP] partner_event: Do single browse
yajo 2e630d9
[IMP] partner_event: forbid partner deletion (#94)
chienandalu 23b744c
[MIG] partner_event: Migration to 11.0
HviorForgeFlow c89e920
[IMP] partner_event: catch onchange with attendee_partner (#1)
chienandalu 56133aa
[MIG]partner_event:Migrated the module from v11 to v12
AnilKesariya a4fa3df
[IMP] partner_event: README by fragments
pedrobaeza b0922cb
Translated using Weblate (Spanish)
45e49b9
[FIX] partner_event: Proper development status
pedrobaeza 7b87a4c
[IMP] partner_event: add data to old registrations
chienandalu ddc9790
[IMP] partner_event: black, isort, prettier
victoralmau 2afbd5d
[MIG] partner_event: Migration to 13.0
victoralmau 3707fa0
[MIG] partner_event : Migration to 14.0
chandni300 a37f60e
Added translation using Weblate (Swedish)
simonstromb 7d1d8be
[FIX] partner_event: ondelete cascade for wizard
pedrobaeza 7b414fe
[MIG] partner_event: Migration to 15.0
stefan-tecnativa 73bb734
[IMP] partner_event: Do registration creation in batch + remove savep…
pedrobaeza 52282ed
[FIX] partner_event: compatibility with event_sale
chienandalu d65006a
[MIG] partner_event: Migration to 16.0
carolinafernandez-tecnativa 7303956
Translated using Weblate (Spanish)
Ivorra78 b0e7ff1
Translated using Weblate (Italian)
mymage f3be93c
[FIX] partner_event: Don't update attendee_partner_id merging partners
pedrobaeza 932bfab
Translated using Weblate (Spanish)
Ivorra78 5e894a8
Translated using Weblate (Italian)
mymage bbf1dec
Translated using Weblate (Swedish)
jakobkrabbe 5757945
[IMP] : pre-commit auto fixes
juanjosesegui-tecnativa 5a13e8b
[MIG] partner_event: Migration to 17.0
juanjosesegui-tecnativa 128f97d
[IMP] partner_event: use order in search by email
fernandahf 3ac4e45
[FIX] partner_event: handle contacts with mobile field
em230418 8b4e348
[IMP] search partner by linked event
remi-filament 18f5267
[FIX] partner_event: Avoid contact error
pilarvargas-tecnativa 5fdd356
Translated using Weblate (Italian)
mymage 9491a6b
[IMP] partner_event: pre-commit auto fixes
victoralmau 758607a
[MIG] partner_event: Migration to 18.0
BhaveshHeliconia 4b71d50
[UPD] Update partner_event.pot
4e65f52
[BOT] post-merge updates
OCA-git-bot b0955e6
[UPD] Update partner_event.pot
9f0bf1f
Update translation files
weblate f1ab8c8
[IMP] partner_event: pre-commit auto fixes
nihelgabsi-acsone 92f6f82
[MIG] partner_event: Migration to 19.0
nihelgabsi-acsone File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| .. image:: https://odoo-community.org/readme-banner-image | ||
| :target: https://odoo-community.org/get-involved?utm_source=readme | ||
| :alt: Odoo Community Association | ||
|
|
||
| ====================== | ||
| Link partner to events | ||
| ====================== | ||
|
|
||
| .. | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! This file is generated by oca-gen-addon-readme !! | ||
| !! changes will be overwritten. !! | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! source digest: sha256:23c386ee6a1368b2996b3a08ee30b9f0bd78971c8b980dfa889c4635a2db9b86 | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
|
||
| .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png | ||
| :target: https://odoo-community.org/page/development-status | ||
| :alt: Production/Stable | ||
| .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png | ||
| :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
| :alt: License: AGPL-3 | ||
| .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fevent-lightgray.png?logo=github | ||
| :target: https://github.com/OCA/event/tree/19.0/partner_event | ||
| :alt: OCA/event | ||
| .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
| :target: https://translation.odoo-community.org/projects/event-19-0/event-19-0-partner_event | ||
| :alt: Translate me on Weblate | ||
| .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
| :target: https://runboat.odoo-community.org/builds?repo=OCA/event&target_branch=19.0 | ||
| :alt: Try me on Runboat | ||
|
|
||
| |badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
|
||
| This module links partners with the events they are registered through a | ||
| smart button. | ||
|
|
||
| It also includes: | ||
|
|
||
| - Search partners by their event attendees. | ||
| - Search partners by number of events attendees. | ||
| - Search partners by number of events attended. | ||
| - Partner column is visible on registration one2many list inside the | ||
| event. | ||
| - Action in partner tree view 'More' button, to register several | ||
| partners to an event | ||
| - Restricts partner deletion when event attendees are linked to it. | ||
| - Onchange for partner_id removed in v16 core in Event Registration- | ||
| including functionality here | ||
|
|
||
| **Table of contents** | ||
|
|
||
| .. contents:: | ||
| :local: | ||
|
|
||
| Configuration | ||
| ============= | ||
|
|
||
| There is a new option in event form view, "Create Partners in | ||
| registration". If this option is checked, when you add registrations to | ||
| this event, partners will be created automatically with name, email, | ||
| phone and mobile fields. | ||
|
|
||
| If partner already exists and user only fills email, name, phone and | ||
| mobile fields will be filled with partner's data. | ||
|
|
||
| The event registration values email, name, phone and mobile will be | ||
| changed if the related partner values are changed and the event end date | ||
| hasn't passed yet. | ||
|
|
||
| Bug Tracker | ||
| =========== | ||
|
|
||
| Bugs are tracked on `GitHub Issues <https://github.com/OCA/event/issues>`_. | ||
| In case of trouble, please check there if your issue has already been reported. | ||
| If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
| `feedback <https://github.com/OCA/event/issues/new?body=module:%20partner_event%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
|
||
| Do not contact contributors directly about support or help with technical issues. | ||
|
|
||
| Credits | ||
| ======= | ||
|
|
||
| Authors | ||
| ------- | ||
|
|
||
| * Tecnativa | ||
|
|
||
| Contributors | ||
| ------------ | ||
|
|
||
| - `Tecnativa <https://www.tecnativa.com>`__: | ||
|
|
||
| - Pedro M. Baeza | ||
| - Antonio Espinosa | ||
| - Jairo Llopis | ||
| - Vicent Cubells | ||
| - David Vidal | ||
| - Rafael Blasco | ||
| - Víctor Martínez | ||
| - Stefan Ungureanu | ||
| - Carolina Fernandez | ||
| - Pilar Vargas | ||
|
|
||
| - `Antiun <https://antiun.com/>`__: | ||
|
|
||
| - Javier Iniesta | ||
|
|
||
| - Anil Kesariya | ||
| - `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__ | ||
|
|
||
| - Bhavesh Heliconia | ||
|
|
||
| Maintainers | ||
| ----------- | ||
|
|
||
| This module is maintained by the OCA. | ||
|
|
||
| .. image:: https://odoo-community.org/logo.png | ||
| :alt: Odoo Community Association | ||
| :target: https://odoo-community.org | ||
|
|
||
| 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. | ||
|
|
||
| This module is part of the `OCA/event <https://github.com/OCA/event/tree/19.0/partner_event>`_ project on GitHub. | ||
|
|
||
| You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| from . import models | ||
| from . import wizard | ||
| from .hooks import post_init_hook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Copyright 2014 Tecnativa S.L. - Pedro M. Baeza | ||
| # Copyright 2015 Tecnativa S.L. - Javier Iniesta | ||
| # Copyright 2016 Tecnativa S.L. - Antonio Espinosa | ||
| # Copyright 2016 Tecnativa S.L. - Vicent Cubells | ||
| # Copyright 2017 Tecnativa S.L. - David Vidal | ||
| # Copyright 2018 Jupical Technologies Pvt. Ltd. - Anil Kesariya | ||
| # Copyright 2020 Tecnativa S.L. - Víctor Martínez | ||
| # Copyright 2023 Tecnativa S.L. - Carolina Fernandez | ||
| # Copyright 2024 Tecnativa S.L. - Juan José Seguí | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
|
||
| { | ||
| "name": "Link partner to events", | ||
| "version": "19.0.1.0.0", | ||
| "category": "Marketing", | ||
| "author": "Tecnativa,Odoo Community Association (OCA)", | ||
| "website": "https://github.com/OCA/event", | ||
| "development_status": "Production/Stable", | ||
| "license": "AGPL-3", | ||
| "depends": ["event"], | ||
| "data": [ | ||
| "security/ir.model.access.csv", | ||
| "views/res_partner_view.xml", | ||
| "views/event_event_view.xml", | ||
| "views/event_registration_view.xml", | ||
| "wizard/res_partner_register_event_view.xml", | ||
| ], | ||
| "post_init_hook": "post_init_hook", | ||
| "installable": True, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Copyright 2019 David Vidal | ||
| # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html | ||
|
|
||
|
|
||
| def post_init_hook(env): | ||
| """Preload proper attendee partner for existing registrations using | ||
| the same rules the module does""" | ||
| attendees_emails = env["event.registration"].formatted_read_group( | ||
| domain=[("email", "!=", False)], groupby=["email"] | ||
| ) | ||
| for email in attendees_emails: | ||
| # Order was done for avoiding extra queries for sorting the results | ||
| attendee_partner = env["res.partner"].search( | ||
| [("email", "=ilike", email["email"])], limit=1, order="id" | ||
| ) | ||
| if attendee_partner: | ||
| attendees = env["event.registration"].search(email["__extra_domain"]) | ||
| attendees.write({"attendee_partner_id": attendee_partner.id}) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,142 @@ | ||
| # Translation of Odoo Server. | ||
| # This file contains the translation of the following modules: | ||
| # * partner_event | ||
| # | ||
| msgid "" | ||
| msgstr "" | ||
| "Project-Id-Version: Odoo Server 10.0\n" | ||
| "Report-Msgid-Bugs-To: \n" | ||
| "POT-Creation-Date: 2015-11-03 16:30+0000\n" | ||
| "PO-Revision-Date: 2024-01-13 16:36+0000\n" | ||
| "Last-Translator: Ivorra78 <informatica@totmaterial.es>\n" | ||
| "Language-Team: \n" | ||
| "Language: es\n" | ||
| "MIME-Version: 1.0\n" | ||
| "Content-Type: text/plain; charset=UTF-8\n" | ||
| "Content-Transfer-Encoding: \n" | ||
| "Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
| "X-Generator: Weblate 4.17\n" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model.fields,field_description:partner_event.field_res_partner__registration_count | ||
| #: model:ir.model.fields,field_description:partner_event.field_res_users__registration_count | ||
| msgid "Attendances" | ||
| msgstr "Asistencias" | ||
|
|
||
| #. module: partner_event | ||
| #: model_terms:ir.ui.view,arch_db:partner_event.view_registration_search | ||
| msgid "Attended" | ||
| msgstr "Asistido" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model.fields,field_description:partner_event.field_event_registration__attendee_partner_id | ||
| msgid "Attendee Partner" | ||
| msgstr "Empresa asistente" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model.fields,field_description:partner_event.field_event_registration__partner_id | ||
| msgid "Booked by" | ||
| msgstr "Reservado por" | ||
|
|
||
| #. module: partner_event | ||
| #: model_terms:ir.ui.view,arch_db:partner_event.res_partner_register_event_view | ||
| msgid "Cancel" | ||
| msgstr "Cancelar" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model,name:partner_event.model_res_partner | ||
| msgid "Contact" | ||
| msgstr "Contacto" | ||
|
|
||
| #. module: partner_event | ||
| #: model_terms:ir.ui.view,arch_db:partner_event.view_partner_form_registrations | ||
| msgid "Count of events with confirmed registrations." | ||
| msgstr "Cantidad de eventos con asistencia confirmada." | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model.fields,field_description:partner_event.field_event_event__create_partner | ||
| #: model:ir.model.fields,field_description:partner_event.field_event_session__create_partner | ||
| msgid "Create Partners in registration" | ||
| msgstr "Crear empresas en el registro" | ||
|
|
||
| #. module: partner_event | ||
| #: model_terms:ir.ui.view,arch_db:partner_event.res_partner_register_event_view | ||
| msgid "Create registrations" | ||
| msgstr "Crear registros" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model.fields,field_description:partner_event.field_res_partner_register_event__create_uid | ||
| msgid "Created by" | ||
| msgstr "Creado por" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model.fields,field_description:partner_event.field_res_partner_register_event__create_date | ||
| msgid "Created on" | ||
| msgstr "Creado el" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model.fields,field_description:partner_event.field_res_partner_register_event__display_name | ||
| msgid "Display Name" | ||
| msgstr "Nombre mostrado" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model,name:partner_event.model_event_event | ||
| #: model:ir.model.fields,field_description:partner_event.field_res_partner_register_event__event | ||
| msgid "Event" | ||
| msgstr "Evento" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model,name:partner_event.model_event_registration | ||
| msgid "Event Registration" | ||
| msgstr "Registro a evento" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model.fields,field_description:partner_event.field_res_partner__event_registration_ids | ||
| #: model:ir.model.fields,field_description:partner_event.field_res_users__event_registration_ids | ||
| msgid "Event registrations" | ||
| msgstr "Registros a eventos" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model.fields,field_description:partner_event.field_res_partner_register_event__id | ||
| msgid "ID" | ||
| msgstr "ID" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model.fields,field_description:partner_event.field_res_partner_register_event__write_uid | ||
| msgid "Last Updated by" | ||
| msgstr "Última actualización por" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model.fields,field_description:partner_event.field_res_partner_register_event__write_date | ||
| msgid "Last Updated on" | ||
| msgstr "Última actualización el" | ||
|
|
||
| #. module: partner_event | ||
| #: model_terms:ir.ui.view,arch_db:partner_event.view_res_partner_filter | ||
| msgid "Linked events" | ||
| msgstr "" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model,name:partner_event.model_base_partner_merge_automatic_wizard | ||
| msgid "Merge Partner Wizard" | ||
| msgstr "Asistente para la Fusión de Socios" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.actions.act_window,name:partner_event.action_partner_register_event | ||
| msgid "Register in an event" | ||
| msgstr "Registrar en un evento" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.model,name:partner_event.model_res_partner_register_event | ||
| msgid "Register partner for event" | ||
| msgstr "Registrar empresa al evento" | ||
|
|
||
| #. module: partner_event | ||
| #: model:ir.actions.act_window,name:partner_event.act_partner_registration | ||
| msgid "Registrations" | ||
| msgstr "Registros" | ||
|
|
||
| #. module: partner_event | ||
| #: model_terms:ir.ui.view,arch_db:partner_event.res_partner_register_event_view | ||
| msgid "Select event to register" | ||
| msgstr "Selecciona el evento para registrar" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is better like this