Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
10770 Zobrazení

 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.")

        ]

Avatar
Zrušit
Nejlepší odpověď

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.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
srp 24
15270
2
čvn 23
4235
0
říj 17
2570
0
bře 15
3748
1
bře 15
7431