Show emails as archive
issue10108 review339911003
This commit is contained in:
@@ -39,7 +39,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
</record>
|
||||
|
||||
<record model="ir.action.act_window" id="act_email_form_relate">
|
||||
<field name="name">E-mails</field>
|
||||
<field name="name">E-mail Archives</field>
|
||||
<field name="res_model">ir.email</field>
|
||||
<field
|
||||
name="domain"
|
||||
|
||||
@@ -70,12 +70,13 @@ class Email(ResourceAccessMixin, ModelSQL, ModelView):
|
||||
|
||||
user = fields.Function(fields.Char("User"), 'get_user')
|
||||
at = fields.Function(fields.DateTime("At"), 'get_at')
|
||||
recipients = fields.Char("Recipients")
|
||||
recipients_secondary = fields.Char("Secondary Recipients")
|
||||
recipients_hidden = fields.Char("Hidden Recipients")
|
||||
addresses = fields.One2Many('ir.email.address', 'email', "Addresses")
|
||||
subject = fields.Char("Subject")
|
||||
body = fields.Text("Body")
|
||||
recipients = fields.Char("Recipients", readonly=True)
|
||||
recipients_secondary = fields.Char("Secondary Recipients", readonly=True)
|
||||
recipients_hidden = fields.Char("Hidden Recipients", readonly=True)
|
||||
addresses = fields.One2Many(
|
||||
'ir.email.address', 'email', "Addresses", readonly=True)
|
||||
subject = fields.Char("Subject", readonly=True)
|
||||
body = fields.Text("Body", readonly=True)
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
|
||||
Reference in New Issue
Block a user