Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

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

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

TypeError in Calendar view when opening page, in Odoo version 9

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
calendarv9
1 Atsakyti
7092 Rodiniai
Portretas
Trevor Nemanic

I am using Odoo v9 and receive the following TypeError when I open the page to look at the calendar and also when I click on the calendar to create an event. I believe the problem is either date_start references a String and not a DateTime, or I need to specify additional fields in the Calendar view. How do I fix this issue?

My class in Python:

class Appointments(models.Model):

   apt_date_start = fields.Datetime()

   apt_date_stop = fields.Datetime()

   notes = fields.Char()


Calendar view

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

    <field name="name">FixTribe Appointments Calendar</field>

    <field name="model">fix_tribe.appointments</field>

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

        <calendar string="Appointments"

            mode="day"   date_stop="apt_date_stop"

            date_start="apt_date_start" quick_add="False" >

            <field name="notes"/>

        </calendar>

    </field>

</record>



The error:

Uncaught TypeError: Cannot read property 'type' of undefined

http://localhost:8069/web/content/714-5d121d4/web.assets_backend.js:4746
Traceback:
TypeError: Cannot read property 'type' of undefined
    at http://localhost:8069/web/content/714-5d121d4/web.assets_backend.js:4746:165
    at Function._.each._.forEach (http://localhost:8069/web/content/703-114de7a/web.assets_common.js:12:558)
    at Object.<anonymous> (http://localhost:8069/web/content/714-5d121d4/web.assets_backend.js:4746:110)
    at fire (http://localhost:8069/web/content/703-114de7a/web.assets_common.js:644:299)
    at Object.self.fireWith [as resolveWith] (http://localhost:8069/web/content/703-114de7a/web.assets_common.js:649:198)
    at Object.<anonymous> (http://localhost:8069/web/content/703-114de7a/web.assets_common.js:650:874)
    at fire (http://localhost:8069/web/content/703-114de7a/web.assets_common.js:644:299)
    at Object.self.fireWith [as resolveWith] (http://localhost:8069/web/content/703-114de7a/web.assets_common.js:649:198)
    at Object.deferred.(anonymous function) (http://localhost:8069/web/content/703-114de7a/web.assets_common.js:651:56)
    at fire (http://localhost:8069/web/content/703-114de7a/web.assets_common.js:644:299)
0
Portretas
Atmesti
Paulo Matos

Hi Trevor,

I know the post is quite old but I do have the same issue on exactly same Odoo version (v9). How did you solve the error? Thank you in advance

Trevor Nemanic
Autorius

Hey Paulo. You're right about this being a very old post! Unfortunately, I don't know how or if the problem was solved. I quit working with Odoo because I found it to be very poorly documented. Perhaps this has changed in recent years. Based on my experience, I recommend searching for a different framework entirely. Best of luck, Trevor.

Portretas
Jignesh Mehta
Best Answer

Hello Trevor,


You give date_start field as a Char which is wrong for the Calendar view.


Change type of apt_date_start  Char to Datetime.

apt_date_start = fields.Datetime()

and also import datetime through

from datetime import datetime


Thanks,

0
Portretas
Atmesti
Trevor Nemanic
Autorius

I've put out a new version (now shown in the post) that changed Char to Datetime, but the error persists. I even cascaded dropped the Appointments table, and added on an end time to see if that would work. Still doesn't

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

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

Registracija
Related Posts Replies Rodiniai Veikla
Show fields label in calendar view in v9
calendar label v9
Portretas
0
lapkr. 16
3304
Jalali-calendar- odoo18
calendar
Portretas
Portretas
1
liep. 25
1558
Internal Team Grouping for Calendar Solved
calendar
Portretas
Portretas
2
birž. 25
1863
Odoo 15 community: Calendar view enddate shows wrong date
calendar
Portretas
Portretas
1
geg. 25
3083
How to hide "everybody's calendar" from certain users or groups
calendar
Portretas
Portretas
1
bal. 25
4635
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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