Remove default allowed contact method

This commit is contained in:
resteve 2015-12-14 11:31:11 +01:00
parent e576d1f7d6
commit 454dc76a67
1 changed files with 0 additions and 15 deletions

View File

@ -69,18 +69,3 @@ class Activity:
if opportunity_party_id:
return opportunity_party_id
return super(Activity, cls).default_party()
# TODO: On 3.4 not necessary any more.
@classmethod
def default_allowed_contacts(cls):
pool = Pool()
Activity = pool.get('activity.activity')
Party = pool.get('party.party')
activity = Activity()
party_id = cls.default_party()
if party_id:
activity.party = Party(cls.default_party())
else:
activity.party = None
allowed = activity.on_change_with_allowed_contacts()
return allowed