|
|
@ -88,7 +88,7 @@ class SubscriptionPackage(models.Model): |
|
|
|
help='Add the tags') |
|
|
|
stage_id = fields.Many2one('subscription.package.stage', string='Stage', |
|
|
|
default=lambda self: self._default_stage_id(), |
|
|
|
index=True,tracking=True, |
|
|
|
index=True, tracking=True, |
|
|
|
group_expand='_read_group_stage_ids', |
|
|
|
help='Subscription Package stage', copy=False) |
|
|
|
invoice_count = fields.Integer(string='Invoices', |
|
|
@ -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 |