コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
3162 ビュー

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..."

アバター
破棄
著作者 最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
3
7月 19
7160
3
9月 20
4403
0
3月 15
5634
1
10月 21
3565
3
12月 16
8693