İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

How can I edit the calendar view? Note: not the form but the view of the calendar labels of the project module

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
enterprisetaskcalendarview17.0
2 Cevaplar
1755 Görünümler
Avatar
www.fdc-corporation.com

Apart from just showing the name and time I want it to show more information 

The odoo is hosted on a vps and is v17 Enterprise, if anyone knows about the customization or maybe some documentation they have found.


0
Avatar
Vazgeç
Avatar
D Enterprise
En İyi Yanıt

Hi,

Add a Computed Display Field + Inherit the Calendar View

Create a new field in a custom module to compute the display label. 

from odoo import models, fields


class ProjectTask(models.Model):

    _inherit = 'project.task'


    calendar_label = fields.Char(

        string="Calendar Label",

        compute="_compute_calendar_label",

        store=False

    )


    def _compute_calendar_label(self):

        for task in self:

            priority = dict(self._fields['priority'].selection).get(task.priority, '')

            user = task.user_id.name or ''

            task.calendar_label = f"{task.name} [{priority}] - {user}"


Inherit the Calendar View

Now replace the default label ( name ) with your new computed field ( calendar_label ).


<odoo>

    <record id="project_task_calendar_custom" model="ir.ui.view">

        <field name="name">project.task.calendar.inherit</field>

        <field name="model">project.task</field>

        <field name="inherit_id" ref="project.view_task_calendar"/>

        <field name="arch" type="xml">

            <!-- Replace name field used as label -->

            <xpath expr="//field[@name='name']" position="replace">

                <field name="calendar_label"/>

            </xpath>

        </field>

    </record>

</odoo>


I hope it is of full use.

0
Avatar
Vazgeç
Avatar
Cybrosys Techno Solutions Pvt.Ltd
En İyi Yanıt

Hi,

Please refer to the code below:

Python:


class ProjectTask(models.Model):

    _inherit = 'project.task'


    custom_title = fields.Char(string="Custom Calendar Title",

                               compute="_compute_custom_title")


    def _compute_custom_title(self):

        """

        Compute the custom title for calendar view display.


        This method sets the `custom_title` field by combining the task's

        stage name and task name in the format: [Stage] Task Name.

        Example:

            If a task is in stage "In Progress" and named "Fix Bug",

            the computed custom_title will be "[In Progress] Fix Bug".

        """

        for task in self:

            task.custom_title = f"[{task.stage_id.name}] {task.name}"


XML:


<record id="view_task_calendar" model="ir.ui.view">

    <field name="name">project.task.view.calendar</field>

    <field name="model">project.task</field>

    <field name="inherit_id" ref="view_task_calendar"/>

    <field name="mode">primary</field>

    <field name="arch" type="xml">

        <xpath expr="//calendar" position="attributes">

            <attribute name="name">custom_title</attribute>

        </xpath>

    </field>

</record>


Hope it helps.

0
Avatar
Vazgeç
Enjoying the discussion? Don't just read, join in!

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

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
Payment method in invoice Çözüldü
enterprise Payment-Methods 17.0
Avatar
Avatar
Avatar
3
Eyl 25
6570
How to link to a task in the calendar view (from the project.task model)
task calendarview calendar_view
Avatar
Avatar
1
Şub 23
4190
Custom colors in task calendar view
task color calendarview
Avatar
0
Eyl 20
4342
Missing menu and breadcrumb on project task opened from email
project community task 17.0
Avatar
0
Eki 24
1362
Optional Products not showing when adding product to cart
enterprise products webshop 17.0
Avatar
Avatar
Avatar
Avatar
3
Eyl 24
3140
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة 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 ภาษาไทย Türkçe українська Tiếng Việt

Odoo, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

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