0
4 答案
0
最佳答案
# class miadi_poidsConditionnement(models.Model):
_sql_constraints = [
('uniq_id',
'UNIQUE (produit_id, conditionnement_id)',
'A product already exists with this packaging !')]
Try this