Odoo Help


How to use calendarview ?

Trai Doan
on 12/5/14, 12:44 AM 524 views

class lich(osv.osv):
    _name = "tt_lich" 
    _columns = {
        'name': fields.char('Mã lịch trình',size=20,required=True),
       'date_start':fields.date('Ngày bắt đầu'),
       'date_stop':fields.date('Ngày kết thúc'),

<record id="lichcalendar" model="ir.ui.view">
            <field name="name">Lịch sản xuất</field>
            <field name="model">tt_lich</field>
            <field name="arch" type="xml">
                    <calendar date_start="date_start" date_stop="date_stop">
                        <group col="2">
                            <field name="name"/>
        <record id="action_lich" model="ir.actions.act_window">
            <field name="name">Lịch sản xuất</field>
            <field name="res_model">tt_lich</field>
            <field name="view_mode">tree,form,calendar</field>

I try to create some calendar view but when when i put start date and stop date in form view then i move to calendar view and it show this error "Uncaught TypeError: Cannot read property '0' of undefined" .Please help me to solve it .Thanks

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 12/5/14, 12:44 AM
Seen: 524 times
Last updated: 3/16/15, 8:10 AM