Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
285 Visualizações

Hi  guys!!!!

Pleas, i didnt understand why is odoo  printing to me this error:

IntegrityError: null value in column "prix" violates not-null constraint

Despite the fact that everything is ok

Avatar
Cancelar

It may possible that "Prix" column is written as "Required=True" attribute inside the py file. That's why while adding the row in database table, if this column's value is not there, system is showing you this error. If you facing this error at one of the default screen in Odoo than we can tell you exactly the reason.

Melhor resposta

Abdel,

The error is self-explanatory !

You must fulful basic constraints before saving the record.

If not directly, your consequent clicks causing create() of a model where 'prix' is a mandatory field have a value.

Thanks.

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
mar. 25
1438
0
jan. 25
3558
1
ago. 23
14907
1
ago. 23
13572
1
jul. 23
10534