Skip to content
Snippets Groups Projects
Commit a8ecefcd authored by Victor Feyens's avatar Victor Feyens
Browse files

[IMP] sale_coupon: batch coupon cancellation.

parent 65b7d1f1
Branches
Tags
No related merge requests found
......@@ -115,8 +115,7 @@ class SaleCoupon(models.Model):
}
def action_coupon_cancel(self):
for coupon in self:
coupon.state = 'cancel'
self.state = 'cancel'
def cron_expire_coupon(self):
self._cr.execute("""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment