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!
Bu soru işaretlendi
1
Cevapla
6100
Görünümler
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
Tartışma hoşunuza mı gidiyor? Sadece okumakla kalmayın, katılın!
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
|
0
May 21
|
4571 | ||
|
|
2
Oca 20
|
5088 | ||
|
|
2
Haz 25
|
11615 | ||
|
|
3
Ağu 22
|
13452 | ||
|
|
3
Şub 19
|
7597 |