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()
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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()
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>
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up