İç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

Odoo 8 : Can't remove event in calendar

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
v8calendareventread
5165 Görünümler
Avatar
Youri Lebarch

I extends class calendar_event for add status with statusbar and add custom field. It's work perfectly BUT when i tried to remove a event i've a problem :  

         Traceback (most recent call last):
      File "/home/xxx/workspace/Odoo8/openerp/http.py", line 530, in _handle_exception
        return super(JsonRequest, self)._handle_exception(exception)
      File "/home/xxx/workspace/Odoo8/openerp/http.py", line 567, in dispatch
        result = self._call_function(**self.params)
      File "/home/xxx/workspace/Odoo8/openerp/http.py", line 303, in _call_function
        return checked_call(self.db, *args, **kwargs)
      File "/home/xxx/workspace/Odoo8/openerp/service/model.py", line 113, in wrapper
        return f(dbname, *args, **kwargs)
      File "/home/xxx/workspace/Odoo8/openerp/http.py", line 300, in checked_call
        return self.endpoint(*a, **kw)
      File "/home/xxx/workspace/Odoo8/openerp/http.py", line 796, in __call__
        return self.method(*args, **kw)
      File "/home/xxx/workspace/Odoo8/openerp/http.py", line 396, in response_wrap
        response = f(*args, **kw)
      File "/home/xxx/workspace/alpbureautique_openerp/openerp/addons/web/controllers/main.py", line 949, in call_kw
        return self._call_kw(model, method, args, kwargs)
      File "/home/xxx/workspace/alpbureautique_openerp/openerp/addons/web/controllers/main.py", line 941, in _call_kw
        return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
      File "/home/xxx/workspace/Odoo8/openerp/api.py", line 241, in wrapper
        return old_api(self, *args, **kwargs)
      File "/home/xxx/workspace/alpbureautique_openerp/openerp/addons/calendar/calendar.py", line 1748, in unlink
        res = super(calendar_event, self).unlink(cr, uid, ids_to_unlink, context=context)
      File "/home/xxx/workspace/Odoo8/openerp/api.py", line 241, in wrapper
        return old_api(self, *args, **kwargs)
      File "/home/xxx/workspace/alpbureautique_openerp/openerp/addons/mail/mail_thread.py", line 445, in unlink
        res = super(mail_thread, self).unlink(cr, uid, ids, context=context)
      File "/home/xxx/workspace/Odoo8/openerp/api.py", line 241, in wrapper
        return old_api(self, *args, **kwargs)
      File "/home/xxx/workspace/Odoo8/openerp/models.py", line 3629, in unlink
        recs.recompute()
      File "/home/xxx/workspace/Odoo8/openerp/api.py", line 239, in wrapper
        return new_api(self, *args, **kwargs)
      File "/home/xxx/workspace/Odoo8/openerp/models.py", line 5647, in recompute
        name: rec[name] for name in names
      File "/home/xxx/workspace/Odoo8/openerp/models.py", line 5647, in <dictcomp>
        name: rec[name] for name in names
      File "/home/xxx/workspace/Odoo8/openerp/models.py", line 5535, in __getitem__
        return self._fields[key].__get__(self, type(self))
      File "/home/xxx/workspace/Odoo8/openerp/fields.py", line 765, in __get__
        self.determine_value(record)
      File "/home/xxx/workspace/Odoo8/openerp/fields.py", line 843, in determine_value
        self.compute_value(recs)
      File "/home/xxx/workspace/Odoo8/openerp/fields.py", line 823, in compute_value
        self._compute_value(records)
      File "/home/xxx/workspace/Odoo8/openerp/fields.py", line 815, in _compute_value
        self.compute(records)
      File "/home/xxx/workspace/alpbureautique_openerp/openerp/cap_addons/cap_CRM/models/calendar_event.py", line 33, in _compute_participant
        if record.user_id.partner_id in record.partner_ids:
      File "/home/xxx/workspace/Odoo8/openerp/fields.py", line 765, in __get__
        self.determine_value(record)
      File "/home/xxx/workspace/Odoo8/openerp/fields.py", line 858, in determine_value
        record._prefetch_field(self)
      File "/home/xxx/workspace/Odoo8/openerp/api.py", line 239, in wrapper
        return new_api(self, *args, **kwargs)
      File "/home/xxx/workspace/Odoo8/openerp/models.py", line 3213, in _prefetch_field
        result = records.read(list(fnames), load='_classic_write')
      File "/home/xxx/workspace/Odoo8/openerp/api.py", line 239, in wrapper
        return new_api(self, *args, **kwargs)
      File "/home/xxx/workspace/Odoo8/openerp/api.py", line 546, in new_api
        result = method(self._model, cr, uid, self.ids, *args, **kwargs)
      File "/home/xxx/workspace/alpbureautique_openerp/openerp/addons/calendar/calendar.py", line 1688, in read
        res = real_data[real_id].copy()
    KeyError: 45

 

This error is raise when process pass in my function _compute_participant. Why this function is call ?


My code :


    class calendar_event(osv.Model):
        _inherit = 'calendar.event'
        _columns = {       
                    'cap_state':fields.selection(
                                    [('open', 'Confirmed'),
                                     ('cancel', 'Cancelled'),
                                     ('pending', 'Pending'),
                                     ('done', 'Held')
                                     ], string='Status', track_visibility='onchange',
                                    help='The status is set to Confirmed, when a case is created.\n'
                                         'When the call is over, the status is set to Held.\n'
                                         'If the callis not applicable anymore, the status can be set to Cancelled.'),
                    'participant_without_owner':fields.char(compute="_compute_participant",store=True),
                }
        _default = {
                    'cap_state':'open'
                }
        @api.depends('partner_ids', 'user_id')
        def _compute_participant(self):
            for record in self:
                if record.user_id.partner_id in record.partner_ids:
                    participants = record.partner_ids - record.user_id.partner_id
                    chaine = str("")
                    for p in participants:
                        chaine = chaine + p.name + ", "
                    record.participant_without_owner = chaine
        def done_event_in_tree(self, cr, uid, ids, context=None):
            res = self.write(cr, uid, ids, {'cap_state': 'done'}, context)
            return res
        def create(self,cr, uid, vals, context=None):
            import datetime as dt
            if context is None:
                context = {}      
            date_appel = datetime.strptime(vals['start_datetime'], '%Y-%m-%d %H:%M:%S')
            print type(date_appel)
            print type(dt.datetime.today())
            if date_appel > dt.datetime.today():
                vals['cap_state'] = 'open'    
            else:
                vals['cap_state'] = 'done'   
            vals['participant_without_owner'] = ""
            print vals
            res = super(calendar_event, self).create(cr, uid, vals, context=context)
            return res  


Have you an idea ?

In odoo v8

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
Can entries on other module calendars such as projects or accounting be seen on an individuals calendar?
v8 calendar
Avatar
Avatar
Avatar
2
Mar 15
3610
How can I edit a specific instance of a recurrent calendar event using the event_id and the date?
calendar event attendee
Avatar
Avatar
1
Şub 20
4595
Delete all recurrences of a calendar meeting
v8 calendar recurring
Avatar
Avatar
2
Kas 17
5885
How to sync event.event dates to calendar.event dates?
calendar event marketing
Avatar
Avatar
1
Haz 16
5661
Issue with private events in Calendar
security v8 calendar
Avatar
0
Haz 15
4615
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