Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4384 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
toukok. 21
2886
2
tammik. 20
3698
2
kesäk. 25
9358
3
elok. 22
11716
3
helmik. 19
5769