Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Specific Industry Applications
  3. Import Step: Events v 17.0
  4. Sales Conditions FAQ

Import Step: Events

by Futural https://github.com/tawasta/server-tools
Odoo
v 17.0 Third Party 1
Download for v 17.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies Show
Import Core
Lines of code 647
Technical Name import_step_events
LicenseAGPL-3
Websitehttps://github.com/tawasta/server-tools
You bought this module and need support? Click here!

Import Step: Events

Adds an Events + Registrations import step for the import_core framework.

This module registers:

  • Import step: event
  • Runner model: generic.import.runner.event

The step integrates with the generic dispatcher provided by import_core.

Features

The event import step supports:

  • Creating events
  • Reusing existing events via search fields
  • Creating event registrations
  • Reusing existing registrations via search fields
  • Shared import state integration
  • Automatic event-registration linking
  • Integration with previous import steps

The module depends on:

  • import_core
  • event

Import step registration

The module registers the following import step:

<record id="generic_import_step_event" model="generic.import.step">
    <field name="name">Events + Registrations</field>
    <field name="code">event</field>
    <field name="sequence">20</field>
    <field name="required_models">
        event.event,event.registration
    </field>
</record>

This means:

  • The dispatcher executes runner:

    generic.import.runner.event

  • The step is only available when models:

    • event.event
    • event.registration

    are installed.

Configuration

  1. Install modules:

    • import_core
    • event
    • import_step_events
  2. Open:

    Imports -> Templates

  3. Create or edit a template

  4. Add import step:

    • Events + Registrations
  5. Configure field mappings for models:

    • event.event
    • event.registration
  6. Optionally mark fields as:

    • Is search field

Search fields are used to find existing records before creating new ones.

Usage

Event import

Map CSV/XLSX columns to event.event fields.

Example mappings:

  • Event Name -> event.event.name
  • Start Date -> event.event.date_begin
  • End Date -> event.event.date_end

Import behavior:

  • Existing events are reused when search fields match
  • New events are created when no match exists

Example CSV

Event Name,Start Date,End Date
Demo Event,2026-01-01 09:00:00,2026-01-01 16:00:00

Registration import

Map CSV/XLSX columns to event.registration fields.

Example mappings:

  • Registration Name -> event.registration.name
  • Email -> event.registration.email

Import behavior:

  • Existing registrations are reused when search fields match
  • New registrations are created when no match exists

Automatic event linking

The runner automatically links registrations to the imported event.

Implementation flow:

event = self._get_or_create_from_lines(
    "event.event",
    ...
)

registration = self._get_or_create_from_lines(
    "event.registration",
    ...
)

The event record is stored into shared import state:

state = self._set_state_record(
    state,
    "event",
    event,
)

This allows state links to assign:

  • event.registration.event_id

automatically.

Partner integration

The module integrates with previous import steps.

Example:

  • import_step_contacts creates/fetches a partner
  • Partner is stored into shared import state
  • Event registration step reuses the partner

Typical state link configuration:

source_state_key = partner
target_model     = event.registration
target_field     = partner_id

This enables automatic registration-partner linking.

Shared import state

The runner stores records into shared state:

state["event"]
state["event_registration"]

Automatic model-based state keys are also generated by generic.import.runner.base.

Example:

state["event_event"]
state["event_registration"]

Search field behavior

Fields marked as Is search field are used to build lookup domains.

Example:

  • name marked as search field on event.event

The runner performs:

self.env["event.event"].search([
    ("name", "=", value)
], limit=1)

If a matching record is found:

  • Existing record is reused
  • Duplicate creation is avoided

Technical implementation

The runner inherits:

_inherit = "generic.import.runner.base"

Available helper methods include:

  • _get_or_create()
  • _get_or_create_from_lines()
  • _build_domain()
  • _clean_vals()
  • _set_state_record()

Import flow

Simplified processing order:

  1. Read mapped event values
  2. Search/create event
  3. Store event into state
  4. Read mapped registration values
  5. Search/create registration
  6. Store registration into state
  7. Apply configured state links

Dependencies

Python dependencies:

  • None

Odoo dependencies:

  • import_core
  • event

Known issues / Roadmap

Credits

Contributors

  • Valtteri Lattu <valtteri.lattu@tawasta.fi>

Maintainer

Oy Tawasta OS Technologies Ltd.

This module is maintained by Oy Tawasta OS Technologies Ltd.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with