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..."
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
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?
Editing source code is not good one, you can override it and make the changes as per the need
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
3
lip 19
|
7115 | ||
|
3
wrz 20
|
4376 | ||
|
0
mar 15
|
5575 | ||
How to change report list in menu
Rozwiązane
|
|
1
paź 21
|
3516 | |
|
3
gru 16
|
8647 |