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!
Esta pergunta foi sinalizada
1
Responder
6102
Visualizações
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
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
|
0
mai. 21
|
4572 | ||
|
|
2
jan. 20
|
5095 | ||
|
|
2
jun. 25
|
11617 | ||
|
|
3
ago. 22
|
13453 | ||
|
|
3
fev. 19
|
7599 |