code refactoring

This commit is contained in:
Youssef Elouahby 2018-10-08 02:50:58 +01:00
parent 9a36a90c80
commit 841d91bb41

View File

@ -55,6 +55,7 @@ class GolemMember(models.Model):
return [('birthdate_date', operator, adult_date)]
def membership_invoice_action(self):
""" Membership invoice action for minor member """
self.ensure_one()
member = self[0]
action = self.env.ref('golem_member.golem_membership_invoice_action').read()[0]