Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


[Solved]Odoo Client error when opening a calendar view

on 4/27/15, 4:48 AM 657 views


When I have a click on a calendar view in my module I get this error:

Uncaught TypeError: Cannot read property 'type' of undefined


Code for Classes 

class vetclinic_animal(osv.Model):

_name = "vetclinic.animal"

_columns = {

"name": fields.char("Name", size=64, required = True),

"birthdate" : fields.date("Birth Date"),

"classification_id": fields.many2one("vetclinic.classification", "Classification" , required = True),

"breed_id": fields.many2one("vetclinic.breed", "Breed"),

"labels_ids": fields.many2many("vetclinic.labels", "rel_animal_labels", "animal_id", "labels_id", string="Labels"),

"history": fields.text("History"),

"res_partner_id": fields.many2one("res.partner", "Owner"),

"image": fields.binary("Image"),

"animalvacinations_ids": fields.one2many("vetclinic.animalvacinations", "animal_id", string = "Vacinations"),


class vetclinic_animal_vacinations(osv.Model):

_name = "vetclinic.animalvacinations"

_columns = {

"product_id": fields.many2one("product.product", "Vacination"),

"duedate": fields.date("Due Date"),

"dateperformed": fields.date("Date Performed"),

"animal_id" : fields.many2one("vetclinic.animal", "Animal"),


Code for view:

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

<field name = "name">vetclinic.animalvacinations.calendar.view</field>

<field name = "view_type">calendar</field>

<field name = "model">vetclinic.animalvacinations</field>

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

<calendar string = "Animal Vacinations" date_start = "duedate">

<field name = "animal_id" />

<field name = "product_id" />




What is missing here?

Used standard code from Odoo Essential book and it works fine now

on 5/15/15, 6:27 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 4/27/15, 4:48 AM
Seen: 657 times
Last updated: 9/12/16, 11:25 AM