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!
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
6121
มุมมอง
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
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
|
0
พ.ค. 21
|
4582 | ||
|
|
2
ม.ค. 20
|
5112 | ||
|
|
2
มิ.ย. 25
|
11631 | ||
|
|
3
ส.ค. 22
|
13460 | ||
|
|
3
ก.พ. 19
|
7603 |