Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
3142 Переглядів

hello guys. i want to ask some questions about SQL constraints when importing data in odoo

let's say i have 1 field (name) and I've added SQL constraints unique to that field.. what happens if we importing 2 rows with the same name?


for example:
rows 1: test123
rows 2: test123


do the validation sql constraints pop up shows or we keep importing the data but only the last row (row 2)? thanks


Аватар
Відмінити
Найкраща відповідь

Hi,
The SQL constraints do work while importing data.
Regards

Аватар
Відмінити
Найкраща відповідь

You can check importing with sample date.

I think import will fail due to constraint error. Once remove duplicate row, then only import success.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
@api.constrains Вирішено
2
груд. 23
3198
0
черв. 21
2610
1
лист. 20
4396
2
бер. 24
5592
1
лип. 23
1596