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

Hello,

I want to add the existing field "state" to the model "mail.compose.message". I want to do this because in my custom view(based on the mail.compose.message model), I want to send a message and at the same time change the workflow "hr_timesheet_sheet.sheet".

Can someone tell me how I can get this done?

アバター
破棄
最善の回答

Inherit the model 'mail.compose.message' and add the field.

アバター
破棄
著作者

okay, but the model 'hr_timesheet_sheet.sheet' already inherits 'mail.thread'. How can I add the 'mail.compose.message' so it inherits both models?

that is not an issue if you want to add the field just inherit the base model. You can either inherit mail compose or hr_timesheet. but the module you give in depends in descriptor file matters. The fields upto the inherited model will be available to you. Add the field you wish in your new model which is inherited from the base model. and adjust the position of the field in the view in xml file, for that you have to inherit the view also

関連投稿 返信 ビュー 活動
3
9月 24
46593
2
3月 15
6253
1
3月 15
4528
2
3月 22
2479
0
3月 24
3150