Odoo Help

0

How to add custom date field plot on a calendar View?

By
Odoo
on 4/21/15, 4:41 AM 1,143 views

How to add this  'my_date' field come into calendar view when this form is saved?


class purchase_order(osv.Model):

_inherit='purchase.order'

_columns={

'my_date':fields.date('Follow Up Dates'),


}

purchase_order()

0
Odoo
On 4/29/15, 11:42 PM

Found the solution

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

<field name="name">purchase.order.calendar</field>

<field name="model">purchase.order</field>

<field name="inherit_id" ref="purchase.purchase_order_calendar" />

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

<xpath expr="/calendar/field[@name='partner_id']" position="after">

<field name="my_date"/>

</xpath>

</field>

</record>

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.

Register

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)

Stats

Asked: 4/21/15, 4:41 AM
Seen: 1143 times
Last updated: 4/29/15, 11:43 PM