跳至内容
菜单
此问题已终结
1 回复
10746 查看

 Version 9

The code IND is used in 2 models:

<record id="ind" model="hc.vs.participation.type">   

            <field name="code">IND</field>

 

<record id="ind" model="hc.vs.identifier.type">

            <field name="code">IND</field>


Each model has the SQL constraint

_sql_constraints = [

        ('code_unique',

        'UNIQUE(code)',

        "The concept code must be unique.")

        ]

形象
丢弃
最佳答案

The field in the models are not the problem. It's the record ID that is the problem. Both record ID's are "ind":

<record id="ind" .....

There in lies your problem.

 Are you loading XML data this way? Where is the rest of the code. We can help you out more if we can see the rest of it.

形象
丢弃
相关帖文 回复 查看 活动
3
8月 24
15238
2
6月 23
4225
0
10月 17
2554
0
3月 15
3716
1
3月 15
7424