您好我正在尝试使用res.partner
模块设置我的模块之间的关系。我在我的模块中设置了一列与partner_id
的{{1}}相关联,在添加此字段时,我收到此错误。 res.partner
请查看下面的代码,我已为我的模块返回。
Error occurred while validating the field(s) arch: Invalid XML for View Architecture
* View.xml
class visa_application(osv.Model):
_name = "visa.application"
_columns = {
'x_surname' : fields.char('Surname', size=128, help="Enter Surname", required=True),
'x_maiden_name' : fields.char('Maiden Name', size=128, help="Enter Maiden Name"),
'x_fore_name' : fields.char('Fore Name', size=128, required=False, help="Enter Fore Name"),
'customer_id' : fields.many2one('res.partner', 'partner_id') }
错误记录
<record id="visa_application_form" model="ir.ui.view">
<field name="name">visa.application.form</field>
<field name="model">visa.application</field>
<field name="arch" type="xml">
<form string="VisaApplication" version="7.0">
<group col="2">
<field name="x_surname" />
<field name="x_maiden_name" />
<field name="x_fore_name" />
<field name="customer_id" widget="selection" eval="ref('res.partner.name')"/>
</group>
</form>
</field>
</record>
请指导我