Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4278 Weergaven

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!

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
mei 21
2779
2
jan. 20
3631
2
jun. 25
9156
3
aug. 22
11606
3
feb. 19
5631