1、方式一,直接在字段中指定。
xxxxxxxxxx
1
<field name="company_id" options="{'no_create': True}"
2
groups="base.group_multi_company"/>
已复制
2、方式二,在嵌入视图中指定。
xxxxxxxxxx
1
<record id="lunch_cashmove_view_tree_2" model="ir.ui.view">
2
<field name="name">lunch.cashmove.tree</field>
3
<field name="model">lunch.cashmove</field>
4
<field name="arch" type="xml">
5
<tree string="cashmove tree" create='false'>
6
<field name="date"/>
7
<field name="description"/>
8
<field name="amount" sum="Total"/>
9
</tree>
10
</field>
11
</record>
已复制