Odoo 8:模型之间有什么不同 res_model?

Odoo 8 : what different res_model between model?

 <record model="ir.actions.act_window" id="open_gtd_all_tasks_pci">
    <field name="name">Tasks (GTD)</field>
    <field name="res_model">project.task</field>
    <field name="search_view_id" ref="project_gtd.view_task_gtd_search"/>
    <field name="context">{'set_visible': True, 'gtd': True, 'search_default_timebox_id': 1, 'search_default_open': 1, 'search_default_open_project': 1, 'hide_stage': 0}</field>
    <field name="view_type">form</field>
    <field name="view_mode">kanban,tree,form,calendar,gantt,graph</field>
</record>

<record id="planningtask_calendar_view_inherit" model="ir.ui.view">
    <field name="name">ic.team.planning.task.calendar.inherit</field>
    <field name="model">ic.team.planning.task</field>
    <field name="inherit_id" ref="ic_project_issue.ic_team_planning_task_calendar_view"/>
    <field name="arch" type="xml">
        <xpath expr="//calendar[@string='Team Planning']" position="attributes">
            <attribute name="mode">week</attribute>
        </xpath>
    </field>
</record>

与模型有什么不同res_model,使用模型或res_model时有什么效果?我需要解释:-)

res_model和型号

有很大的不同

对于视图的 Odoo 操作:

型号:

在模型中,动作对于数据库的基本记录很重要table听说哪个用于存储该记录 ID 的特定动作。

在你的例子中:

model="ir.actions.act_window" 作为一个ir_actions_act_window数据库table

id="open_gtd_all_tasks_pci" As 该操作的唯一 ID table 记录

用于创建 ID 为 res_model、search_view_id、上下文为 view_type、view_mode 和 ir_actions_act_window database table

res_model :

特定模型的动作

对于视图的 Odoo 设计:

for model="ir.ui.view" for the record as ir_ui_view database table to store a new record as planningtask_calendar_view_inherit unique id 与用于存储记录的名称、型号、inherit_id 字段相同。

听到 模型字段 用于设计特定模型的视图(数据库 table)。

对Odoo(OpenERP)的理解一般。 (点) 与特定型号名称,并将其设为 _(下划线) 并将记录存储为数据库 table.

like res.partner 模块 Odoo(正式的 OpenERP)视为 res_partner 数据库 table.