显示Many2many字段的日历

时间:2017-10-03 14:17:20

标签: openerp odoo-10

如何在日历视图中显示每位员工



    employee_id0 = fields.Many2many('hr.employee', string='Employee', index=True)






<record id="calendar_planning_working_dashboard" model="ir.ui.view">
    <field name="model">my_model</field>
    <field name="arch" type="xml">
        <calendar date_start="date_r1" date_stop="date_r2" color="employee_id0" mode="month" avatar_model="hr.employee" quick_add="False">
            <field name="display_name" />

        </calendar>
    </field>
</record>
&#13;
&#13;
&#13;

0 个答案:

没有答案