Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Artificial Intelligence
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Property Management
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

Internal Team Grouping for Calendar

Odoberať

Get notified when there's activity on this post

This question has been flagged
calendar
2 Replies
3565 Zobrazenia
Avatar
Hashir Amjad


  • Create an option to group internal team members.
  • Enable calendar invites to be sent to the entire group by selecting it as a single unit.
1
Avatar
Zrušiť
Avatar
DataInteger Consultancy Services LLP, DataInteger Consultancy Services LLP
Best Answer

To implement Internal Team Grouping for Calendar Invitations in Odoo (v16, v17, or v18), you'll need to customize the calendar and contact functionalities. The idea is to create a custom model for "Internal Teams" and allow selection of this team when creating meetings so invites go to all team members.


Step-by-Step Implementation

1.Create a Custom Model: internal.team

Add a model to define internal teams and assign users.

# models/internal_team.py
from odoo import models, fields

class InternalTeam(models.Model):
    _name = 'internal.team'
    _description = 'Internal Team'

    name = fields.Char(string='Team Name', required=True)
    member_ids = fields.Many2many('res.users', string='Team Members')

2.Extend Calendar Event to Link a Team

Add a Many2one field to select an internal team in calendar events.

# models/calendar_event.py
from odoo import models, fields, api

class CalendarEvent(models.Model):
    _inherit = 'calendar.event'

    team_id = fields.Many2one('internal.team', string='Internal Team')

    @api.onchange('team_id')
    def _onchange_team_id(self):
        if self.team_id:
            self.partner_ids = [(6, 0, self.team_id.member_ids.mapped('partner_id').ids)]
3. Update Views

has. Add a menu for Internal Team:

<!-- views/internal_team_view.xml -->
<odoo>
  <record id="view_internal_team_form" model="ir.ui.view">
    <field name="name">internal.team.form</field>
    <field name="model">internal.team</field>
    <field name="arch" type="xml">
      <form string="Internal Team">
        <sheet>
          <group>
            <field name="name"/>
            <field name="member_ids"/>
          </group>
        </sheet>
      </form>
    </field>
  </record>

  <record id="view_internal_team_tree" model="ir.ui.view">
    <field name="name">internal.team.tree</field>
    <field name="model">internal.team</field>
    <field name="arch" type="xml">
      <tree>
        <field name="name"/>
        <field name="member_ids"/>
      </tree>
    </field>
  </record>

  <menuitem id="menu_internal_team_root" name="Internal Teams" parent="base.menu_custom" sequence="10"/>
  <menuitem id="menu_internal_team" name="Manage Teams" parent="menu_internal_team_root" action="action_internal_team"/>
</odoo>

b. Extend calendar event view to add team_id :

<!-- views/calendar_event_inherit.xml -->
<odoo>
  <record id="view_calendar_event_form_inherit_team" model="ir.ui.view">
    <field name="name">calendar.event.form.inherit.team</field>
    <field name="model">calendar.event</field>
    <field name="inherit_id" ref="calendar.view_calendar_event_form"/>
    <field name="arch" type="xml">
      <xpath expr="//field[@name='partner_ids']" position="before">
        <field name="team_id"/>
      </xpath>
    </field>
  </record>
</odoo>
4.Security and Access Control

Ensure access to internal.team model for internal users.

<!-- security/ir.model.access.csv -->
access_internal_team_user,access.internal.team.user,model_internal_team,base.group_user,1,1,1,1
5. Final Result
  • User selects a team in the calendar form.
  • All members of that team are automatically added as attendees ( partner_ids ) to the event.
  • They receive invitations as usual.


Thanks & Regards,

Email: contact@datainteger.com

0
Avatar
Zrušiť
Hashir Amjad
Autor

Thanks for your support. Appreciated.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrácia
Related Posts Replies Zobrazenia Aktivita
Jalali-calendar- odoo18
calendar
Avatar
Avatar
1
mar 26
3378
Odoo 15 community: Calendar view enddate shows wrong date
calendar
Avatar
Avatar
1
máj 25
4351
How to hide "everybody's calendar" from certain users or groups
calendar
Avatar
Avatar
1
apr 25
6442
Calendar Month View - More information on entry? Solved
calendar
Avatar
Avatar
Avatar
3
aug 24
4523
Calendar event notifications reach mobile app exactly at 1804 hrs daily. ... odd
calendar
Avatar
0
dec 23
3221
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now