Commits

Raimon Esteve (Zikzakmedia) committed 2c53b6e

Add flag send field

Comments (0)

Files changed (3)

+* Add flag send field
 * Add mailbox field in electronic.mail tree view
 * Add get_email_valid method in ElectronicMail class
 * ElectronicEmail add template field. Default is False (if template module was installed, don't show templates)
     digest = fields.Char('MD5 Digest', size=32)
     collision = fields.Integer('Collision')
     email = fields.Function(fields.Binary('Email'), 'get_email', 'set_email')
+    flag_send = fields.Boolean('Send', readonly=True)
     flag_seen = fields.Boolean('Seen')
     flag_answered = fields.Boolean('Answered')
     flag_flagged = fields.Boolean('Flagged')
       <![CDATA[
       <tree string="Emails">
         <field name="mailbox"/>
+        <field name="from_"/>
+        <field name="subject"/>
+        <field name="date"/>
+        <field name="flag_send"/>
         <field name="flag_seen"/>
         <field name="flag_flagged"/>
         <field name="flag_answered"/>
-        <field name="from_"/>
-        <field name="subject"/>
-        <field name="date"/>
       </tree>
       ]]>
       </field>
           <field name="mailbox"/>
         </group>
         <group colspan="4" col="10" id="flags_area">
+          <label name="flag_send"/>
+          <field name="flag_send"/>
           <label name="flag_seen"/>
           <field name="flag_seen"/>
           <label name="flag_flagged"/>