Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
10743 มุมมอง

 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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ส.ค. 24
15238
2
มิ.ย. 23
4225
0
ต.ค. 17
2553
0
มี.ค. 15
3715
1
มี.ค. 15
7423