Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5348 Lượt xem

Hi all,

How to get calendar view inside the tabs.

Thanks in advance

Ảnh đại diện
Huỷ bỏ

me too need this...


On Mon, Jan 12, 2015 at 1:21 PM, atchuthan <atchuthantu@mail.odoo.com> wrote:

A new answer for Get Calendar View inside tab has been posted. Click here to access the post.

--
atchuthan
Sent by Odoo Inc. using Odoo about Forum Post Get Calendar View inside tab



--

Thanks & Regards,
Anand K
Associate Software Engineer,
Mitosis Technologies Pvt Ltd,
Mobile No :  +91 8124787741.
Câu trả lời hay nhất

Add an one2many field which contain a calendar view in it.

If calendar view is already defined.
<field name="one2many_field" colspan="4" nolabel="1"
                                mode="calendar,tree,form" />

If calendar view not defined.
<field name="one2many_field" colspan="4" nolabel="1"
    mode="calendar,tree,form">
    <calendar>
    .
    </calendar>
    <form>
    .
    </form>
    <tree>
    .
    </tree>
</field>

Ảnh đại diện
Huỷ bỏ
Tác giả

thanks

Tác giả

hi atchuthan, as you told i have done. the code is .xml: " " .py (panel.info): 'trainer_ids' : fields.one2many('trainer.profile.info', 'trainer_id', 'Trainer'), and in .py('trainer.profile.info' class): 'trainer_id': fields.many2one('panel.info','Trainer'), I am getting openerp client error when i run i.e: "Error: View type 'calendar' is not supported in One2Many." http://localhost:8069/web/webclient/js?db=demo:3621 Thanks

Tác giả

.xml:

Tác giả

page string="Assignment Schedules" field name="trainer_ids" colspan="4" nolabel="1" mode="calendar,tree,form" calendar string="EM Admin Dashboard" date_start="date1" date_stop="date2" color="name" field name="date1"/ /calendar /field /page