|
|
@ -472,8 +472,12 @@ class SubscriptionPackage(models.Model): |
|
|
|
action for the subscription package.""" |
|
|
|
return self.button_sale_order() |
|
|
|
|
|
|
|
def pause_subscription(self): |
|
|
|
def action_pause(self): |
|
|
|
""" The function is used to perform the pause |
|
|
|
action for the subscription package.""" |
|
|
|
self.stage_id = self.env.ref('subscription_package.paused_stage').id |
|
|
|
|
|
|
|
def button_resume(self): |
|
|
|
""" The function is used to perform the resume |
|
|
|
action for the subscription package.""" |
|
|
|
self.stage_id = self.env.ref('subscription_package.progress_stage').id |