Odoo

视图定义

示例

<?xml version="1.0"?>
<openerp>
<data>
[view definitions]
</data>
</openerp>

The view definitions contain mainly three types of tags: • tags with the attribute model=”ir.ui.view”, which contain the view definitions themselves • tags with the attribute model=”ir.actions.act_window”, which link actions to these views • tags, which create entries in the menu, and link them with actions New : You can precise groups for whom the menu is accessible using the groups attribute in menuitem tag. New : You can now add shortcut using the shortcut tag. Example

Note that you should add an id attribute on the menuitem which is refered by menu attribute.

sale.order.form sale.order
.........

Default value for the priority field : 16. When not specified the system will use the view with the lower priority.