콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4554 화면

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!

아바타
취소
베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
0
5월 21
3026
2
1월 20
3745
2
6월 25
9485
3
8월 22
11862
3
2월 19
5906