Update dev_membership.py

This commit is contained in:
zainab2097 2024-09-30 15:59:45 +03:00 committed by GitHub
parent 4664006d3a
commit 0b85bf2ad1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -187,9 +187,7 @@ class DevMembership(models.Model):
def action_cancel_membership(self):
self.state = 'cancel'
def action_set_to_draft(self):
self.state = 'draft'
@api.model
def create(self, vals):
res = super(DevMembership, self).create(vals)