add gym module

This commit is contained in:
sonal
2020-08-04 16:50:06 +05:30
parent d32f648b75
commit 29f684db39
219 changed files with 5030 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# See LICENSE file for full copyright and licensing details.
from odoo import api, models
class CalendarEvent(models.Model):
_inherit = 'calendar.event'
@api.model
def inactive_rule(self):
rule_rec = self.env.ref('calendar.calendar_event_rule_employee',
raise_if_not_found=False)
if rule_rec and rule_rec.active:
rule_rec.active = False