跳至內容
選單
此問題已被標幟
1 回覆
5903 瀏覽次數

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>

頭像
捨棄