Skip to content

Commit

Permalink
[mozaik_coordinate] refs #14250
Browse files Browse the repository at this point in the history
[CHG]
* Remove N/A management into sub coordinate models
  • Loading branch information
Jonathan Nemry committed Mar 11, 2015
1 parent c7fb71a commit b8b7aed
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions mozaik_address/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ def _get_main_address_componant(self, cr, uid, ids, name, args,
'city': coord.address_id.city,
'street': coord.address_id.street,
'address':
'VIP' if coord.vip else
'N/A: %s' % coord.address_id.name
if coord.unauthorized else coord.address_id.name,
'VIP' if coord.vip else coord.address_id.name,
}
return result

Expand Down
4 changes: 1 addition & 3 deletions mozaik_email/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ def _get_main_email(self, cr, uid, ids, name, args, context=None):
cr, SUPERUSER_ID, coordinate_ids, context=context):
if coord.active == coord.partner_id.active:
result[coord.partner_id.id] = (
'VIP' if coord.vip
else 'N/A: %s' % coord.email if coord.unauthorized
else coord.email)
'VIP' if coord.vip else coord.email)
return result

_email_store_trigger = {
Expand Down
2 changes: 0 additions & 2 deletions mozaik_phone/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ def _get_main_phone_numbers(self, cr, uid, ids, name, args, context=None):
val = ''
if coord.vip:
val = 'VIP'
elif coord.unauthorized:
val = 'N/A: %s' % coord.phone_id.name
else:
val = coord.phone_id.name
result[
Expand Down

0 comments on commit b8b7aed

Please sign in to comment.