odoo 9 中的日历视图
Calendar view in odoo 9
是否可以在 odoo 9 的日历视图中显示状态 = 完成的所有项目,以及我不需要在日历中显示状态(新的、进行中的)的其他项目。
如果你想在任何视图中显示一些记录:树、表单....
您需要在 XML 字段中的 WindowAction 记录中提供域:
<record .. model="ir.actions.act_window">
....
...
<!-- this is for testing only if it return all record
then this doesn't work else you domain is wrong -->
<field name="domain">[('id','=','False)]</field>
</record>
是否可以在 odoo 9 的日历视图中显示状态 = 完成的所有项目,以及我不需要在日历中显示状态(新的、进行中的)的其他项目。
如果你想在任何视图中显示一些记录:树、表单.... 您需要在 XML 字段中的 WindowAction 记录中提供域:
<record .. model="ir.actions.act_window">
....
...
<!-- this is for testing only if it return all record
then this doesn't work else you domain is wrong -->
<field name="domain">[('id','=','False)]</field>
</record>