效果实现: 只要将字段类型设置成One2many即可
partner_ids = fields.One2many(
comodel_name='dms_distribution.partnerinfo',
inverse_name='partner_id',
string=u'客户信息', required=False
)
xml代码:
<group sting="客户列表">
<field name="partner_ids" nolabel="1">
<tree string="partner ids list" editable="bottom">
<field name="partner_id"/>
<field name="load_sequence"/>
</tree>
</field>
</group>