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!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
4277
查看
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
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
0
5月 21
|
2779 | ||
|
2
1月 20
|
3631 | ||
|
2
6月 25
|
9154 | ||
|
3
8月 22
|
11603 | ||
|
3
2月 19
|
5628 |