Commits

Sergi Almacellas Abellana  committed cd2bea3

Remove unused fields

  • Participants
  • Parent commits fcb4978

Comments (0)

Files changed (5)

 def register():
     Pool.register(
         Mailbox,
-        MailboxParent,
         ReadUser,
         WriteUser,
         ElectronicMail,

File electronic_mail.py

     logging.getLogger('Electronic Mail').warning(
     'Unable to import emailvalid. Email validation disabled.')
 
-__all__ = ['Mailbox', 'MailboxParent', 'ReadUser', 'WriteUser',
-    'ElectronicMail']
+__all__ = ['Mailbox', 'ReadUser', 'WriteUser', 'ElectronicMail']
 
 
 class Mailbox(ModelSQL, ModelView):
 
     name = fields.Char('Name', required=True)
     user = fields.Many2One('res.user', 'Owner')
-    parents = fields.Many2Many(
-             'electronic.mail.mailbox.mailbox',
-             'parent', 'child', 'Parents')
-    subscribed = fields.Boolean('Subscribed')
     read_users = fields.Many2Many('electronic.mail.mailbox.read.res.user',
             'mailbox', 'user', 'Read Users')
     write_users = fields.Many2Many('electronic.mail.mailbox.write.res.user',
                     } for a_w in act_windows for v in views])
 
 
-class MailboxParent(ModelSQL):
-    'Mailbox - parent - Mailbox'
-    __name__ = 'electronic.mail.mailbox.mailbox'
-
-    parent = fields.Many2One('electronic.mail.mailbox', 'Parent',
-            ondelete='CASCADE', required=True, select=1)
-    child = fields.Many2One('electronic.mail.mailbox', 'Child',
-            ondelete='CASCADE', required=True, select=1)
-
-
 class ReadUser(ModelSQL):
     'Electronic Mail - read - User'
     __name__ = 'electronic.mail.mailbox.read.res.user'

File locale/ca_ES.po

 msgid "Name"
 msgstr "Nom"
 
-msgctxt "field:electronic.mail.mailbox,parents:"
-msgid "Parents"
-msgstr "Pares"
-
 msgctxt "field:electronic.mail.mailbox,read_users:"
 msgid "Read Users"
 msgstr "Usuaris lectura"
 msgid "Name"
 msgstr "Nom"
 
-msgctxt "field:electronic.mail.mailbox,subscribed:"
-msgid "Subscribed"
-msgstr "Subscripció"
-
 msgctxt "field:electronic.mail.mailbox,user:"
 msgid "Owner"
 msgstr "Propietari"
 msgid "Write Users"
 msgstr "Usuari modificació"
 
-msgctxt "field:electronic.mail.mailbox.mailbox,child:"
-msgid "Child"
-msgstr "CC"
-
-msgctxt "field:electronic.mail.mailbox.mailbox,create_date:"
-msgid "Create Date"
-msgstr "Data creació"
-
-msgctxt "field:electronic.mail.mailbox.mailbox,create_uid:"
-msgid "Create User"
-msgstr "Usuari creació"
-
-msgctxt "field:electronic.mail.mailbox.mailbox,id:"
-msgid "ID"
-msgstr "Identificador"
-
-msgctxt "field:electronic.mail.mailbox.mailbox,parent:"
-msgid "Parent"
-msgstr "Pare"
-
-msgctxt "field:electronic.mail.mailbox.mailbox,rec_name:"
-msgid "Name"
-msgstr "Nom"
-
-msgctxt "field:electronic.mail.mailbox.mailbox,write_date:"
-msgid "Write Date"
-msgstr "Data modificació"
-
-msgctxt "field:electronic.mail.mailbox.mailbox,write_uid:"
-msgid "Write User"
-msgstr "Usuari modificació"
-
 msgctxt "field:electronic.mail.mailbox.read.res.user,create_date:"
 msgid "Create Date"
 msgstr "Data creació"
 msgid "Mailbox"
 msgstr "Bústia de correu"
 
-msgctxt "model:electronic.mail.mailbox.mailbox,name:"
-msgid "Mailbox - parent - Mailbox"
-msgstr "Bústia de correu - pare - Bústia de correu"
-
 msgctxt "model:electronic.mail.mailbox.read.res.user,name:"
 msgid "Electronic Mail - read - User"
 msgstr "Correu electrònic - lectura - Usuari"
 msgstr "Bústies de correu"
 
 msgctxt "view:electronic.mail.mailbox:"
-msgid "Parents"
-msgstr "Pares"
-
-msgctxt "view:electronic.mail.mailbox:"
 msgid "Permissions"
 msgstr "Permissos"
 

File locale/es_ES.po

 msgid "Name"
 msgstr "Nombre"
 
-msgctxt "field:electronic.mail.mailbox,parents:"
-msgid "Parents"
-msgstr "Padres"
-
 msgctxt "field:electronic.mail.mailbox,read_users:"
 msgid "Read Users"
 msgstr "Usuarios lectura"
 msgid "Name"
 msgstr "Nombre"
 
-msgctxt "field:electronic.mail.mailbox,subscribed:"
-msgid "Subscribed"
-msgstr "Subscrito"
-
 msgctxt "field:electronic.mail.mailbox,user:"
 msgid "Owner"
 msgstr "Propietario"
 msgid "Write Users"
 msgstr "Usuarios modificación"
 
-msgctxt "field:electronic.mail.mailbox.mailbox,child:"
-msgid "Child"
-msgstr "Hijo"
-
-msgctxt "field:electronic.mail.mailbox.mailbox,create_date:"
-msgid "Create Date"
-msgstr "Fecha creación"
-
-msgctxt "field:electronic.mail.mailbox.mailbox,create_uid:"
-msgid "Create User"
-msgstr "Usuario creación"
-
-msgctxt "field:electronic.mail.mailbox.mailbox,id:"
-msgid "ID"
-msgstr "Identificador"
-
-msgctxt "field:electronic.mail.mailbox.mailbox,parent:"
-msgid "Parent"
-msgstr "Padre"
-
-msgctxt "field:electronic.mail.mailbox.mailbox,rec_name:"
-msgid "Name"
-msgstr "Nombre"
-
-msgctxt "field:electronic.mail.mailbox.mailbox,write_date:"
-msgid "Write Date"
-msgstr "Fecha modificación"
-
-msgctxt "field:electronic.mail.mailbox.mailbox,write_uid:"
-msgid "Write User"
-msgstr "Usuario modificación"
-
 msgctxt "field:electronic.mail.mailbox.read.res.user,create_date:"
 msgid "Create Date"
 msgstr "Fecha creación"
 
 msgctxt "field:electronic.mail.mailbox.read.res.user,mailbox:"
 msgid "Mailbox"
-msgstr "Buzón correo"
+msgstr "Buzón de correo"
 
 msgctxt "field:electronic.mail.mailbox.read.res.user,rec_name:"
 msgid "Name"
 msgid "Mailbox"
 msgstr "Buzón de correo"
 
-msgctxt "model:electronic.mail.mailbox.mailbox,name:"
-msgid "Mailbox - parent - Mailbox"
-msgstr "Buzón de correo - padre"
-
 msgctxt "model:electronic.mail.mailbox.read.res.user,name:"
 msgid "Electronic Mail - read - User"
 msgstr "Correo electrónico - lectura - Usuario"
 msgstr "Buzones correo"
 
 msgctxt "view:electronic.mail.mailbox:"
-msgid "Parents"
-msgstr "Padres"
-
-msgctxt "view:electronic.mail.mailbox:"
 msgid "Permissions"
 msgstr "Permisos"
 

File view/electronic_mail_mailbox_form.xml

         <field name="name"/>
         <label name="user"/>
         <field name="user"/>
-        <label name="subscribed"/>
-        <field name="subscribed"/>
     </group>
     <notebook colspan="4">
-        <page string="Parents" id="parents">
-            <field name="parents"/>
-        </page>
         <page string="Permissions" id="permissions">
             <separator name="read_users" colspan="4"/>
             <field name="read_users"/>