Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4343 Lượt xem

Adding a follower to a document opens the mail.wizard.invite, where the check box "Send Email" is preselected. How can I make it NOT checked? Thanks!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

What you have to do is that, just inherit the model mail.wizard.invite and set the default=False in the code.


class Invite(models.TransientModel):
_inherit = 'mail.wizard.invite'

send_mail = fields.Boolean('Send Email', default=False,
help="If checked, the partners will receive an email warning they "
"have been added in the document's followers.")


To set default value for a field from the UI by activating the developer mode, have a look at this video: How To Set Default Value For A Field in Odoo


Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 21
2854
2
thg 1 20
3674
2
thg 6 25
9274
3
thg 8 22
11670
3
thg 2 19
5701