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

Hi everyone, i am new in odoo, i want to add ondelete with "no action" but i want to change default messages with my customized messages, how can i change this messages? the default messages is :"The operation cannot be completed, probably due to the following: 
- deletion: you may be trying to delete a record while other records still reference it 
- creation/update: a mandatory field is not correctly set..."

Avatar
Zrušit
Autor Nejlepší odpověď

I do not want to change source code ,I just want to customize my my field and only edit this message for my field, can I do that or this message is not override-able?

Avatar
Zrušit

Editing source code is not good one, you can override it and make the changes as per the need

Nejlepší odpověď

Hi,

The system will through this message when value for a mandatory/required field is not supplied on record creation/updation.


If you are looking to modify this message you can see the code in the file /odoo/service/model.py in line no 121.

link in github : https://github.com/odoo/odoo/blob/12.0/odoo/service/model.py

Thanks

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
čvc 19
7117
3
zář 20
4379
0
bře 15
5578
1
říj 21
3517
3
pro 16
8648