تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4325 أدوات العرض

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!

الصورة الرمزية
إهمال
أفضل إجابة

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
مايو 21
2812
2
يناير 20
3666
2
يونيو 25
9228
3
أغسطس 22
11652
3
فبراير 19
5678