Paramjit Singh Sahota(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-improve-space-between-name-psa into 
lp:~openerp-dev/openobject-addons/trunk-improve-document-email_alias-bth.

Requested reviews:
  OpenERP R&D Team (openerp-dev)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-improve-space-between-name-psa/+merge/146115

Hello,

Fixed: Removed the space between two fields.
Eg.
group+whole-company @test.com 
Fixed:
[email protected] 

Thankz YoU.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-improve-space-between-name-psa/+merge/146115
Your team OpenERP R&D Team is requested to review the proposed merge of 
lp:~openerp-dev/openobject-addons/trunk-improve-space-between-name-psa into 
lp:~openerp-dev/openobject-addons/trunk-improve-document-email_alias-bth.
=== modified file 'mail/mail_group.py'
--- mail/mail_group.py	2012-12-24 13:48:14 +0000
+++ mail/mail_group.py	2013-02-01 13:30:56 +0000
@@ -44,6 +44,12 @@
     def _set_image(self, cr, uid, id, name, value, args, context=None):
         return self.write(cr, uid, [id], {'image': tools.image_resize_image_big(value)}, context=context)
 
+    def _get_name_domain(self, cr, uid, ids, name, args, context=None):
+        res = dict.fromkeys(ids, False)
+        for record in self.browse(cr, uid, ids ,context):
+            res[record.id] = record.alias_name+'@'+record.alias_domain
+        return res
+
     _columns = {
         'name': fields.char('Name', size=64, required=True, translate=True),
         'description': fields.text('Description'),
@@ -79,6 +85,7 @@
         'alias_id': fields.many2one('mail.alias', 'Alias', ondelete="cascade", required=True,
             help="The email address associated with this group. New emails received will automatically "
                  "create new topics."),
+        'aliasname_domain': fields.function(_get_name_domain, type="char",size=64,string="Alias Name"),
     }
 
     def _get_default_employee_group(self, cr, uid, context=None):

=== modified file 'mail/mail_group_view.xml'
--- mail/mail_group_view.xml	2012-12-20 13:38:39 +0000
+++ mail/mail_group_view.xml	2013-02-01 13:30:56 +0000
@@ -78,7 +78,8 @@
                             <div name="alias_box" colspan="4" attrs="{'invisible': [('alias_domain', '=', False)]}">
                                     <field name="alias_id" invisible="1" required="0"/>
                                     <label for="alias_name" class="oe_edit_only"/>
-                                    <field name="alias_name" nolabel="1" class="oe_inline" attrs="{'required': [('alias_id', '!=', False)]}"/>@<field name="alias_domain" nolabel="1" class="oe_inline"/>
+                                    <field name="aliasname_domain" class="oe_read_only"/>
+                                    <field name="alias_name" nolabel="1" class="oe_inline oe_edit_only" attrs="{'required': [('alias_id', '!=', False)]}" /><span class="oe_inline oe_edit_only">@</span><field name="alias_domain" nolabel="1" class="oe_inline oe_edit_only"/>
                             </div>
                             <field name="description" placeholder="Topics discussed in this group..."/>
                         </div>

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to