Odoo Help

Welcome!

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.

0

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

By
Odoo
on 4/21/15, 4:41 AM 848 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

--Odoo --
1328
| 5 2 5
kerala, India
--Odoo --

Working as a Odoo Functional and Technical Expert

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>

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)

Stats

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