@ -0,0 +1,47 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg |
||||
|
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html |
||||
|
:alt: License: AGPL-3 |
||||
|
|
||||
|
GYM Management System |
||||
|
===================== |
||||
|
This module is used for the managing gym we can add membership, member, workout plans etc in this module basically for managing the membership,member, workout plan etc. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
* No additional configurations needed |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
* Developers: (V16) Sahla Sherin , |
||||
|
(V17) Gayathri V |
||||
|
Contact:odoo@cybrosys.com |
||||
|
|
||||
|
License |
||||
|
======= |
||||
|
GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) |
||||
|
(http://www.gnu.org/licenses/agpl.html) |
||||
|
|
||||
|
Contacts |
||||
|
-------- |
||||
|
* Mail Contact : odoo@cybrosys.com |
||||
|
* Website : https://cybrosys.com |
||||
|
|
||||
|
Bug Tracker |
||||
|
----------- |
||||
|
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
||||
|
|
||||
|
Maintainer |
||||
|
========== |
||||
|
.. image:: https://cybrosys.com/images/logo.png |
||||
|
:target: https://cybrosys.com |
||||
|
|
||||
|
This module is maintained by Cybrosys Technologies. |
||||
|
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,23 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import models |
||||
|
from . import wizard |
@ -0,0 +1,64 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
{ |
||||
|
'name': 'GYM Management System', |
||||
|
'version': '17.0.1.0.0', |
||||
|
'category': 'Industries', |
||||
|
'summary': 'GYM Management System For Managing ' |
||||
|
'Membership, Member, Workout Plan, etc', |
||||
|
'description': 'This module is used for the managing gym we can add ' |
||||
|
'membership, member, workout plans etc in this module ' |
||||
|
'basically for managing the membership,member, workout ' |
||||
|
'plan etc', |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': "https://www.cybrosys.com", |
||||
|
'depends': [ 'mail', 'contacts', 'hr', |
||||
|
'product', 'membership', 'sale_management', |
||||
|
], |
||||
|
'data': [ |
||||
|
'security/gym_mgmt_system_groups.xml', |
||||
|
'security/ir.model.access.csv', |
||||
|
'security/gym_mgmt_system_security.xml', |
||||
|
'data/ir_sequence_data.xml', |
||||
|
'wizard/assign_workout.xml', |
||||
|
'views/product_template_views.xml', |
||||
|
'views/res_partner_views.xml', |
||||
|
'views/exercise_for_views.xml', |
||||
|
'views/gym_exercise_views.xml', |
||||
|
'views/gym_membership_views.xml', |
||||
|
'views/measurement_history_views.xml', |
||||
|
'views/membership_plan_views.xml', |
||||
|
'views/gym_report_views.xml', |
||||
|
'views/trainer_skill_views.xml', |
||||
|
'views/workout_plan_views.xml', |
||||
|
'views/workout_days_views.xml', |
||||
|
'views/my_workout_plan_views.xml', |
||||
|
'views/hr_employee_views.xml', |
||||
|
], |
||||
|
'images': ['static/description/banner.jpg'], |
||||
|
'license': 'AGPL-3', |
||||
|
'installable': True, |
||||
|
'application': False, |
||||
|
'auto_install': False, |
||||
|
} |
@ -0,0 +1,11 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo noupdate="1"> |
||||
|
<!-- This is used to generate the sequence for gym membership--> |
||||
|
<record id="seq_gym_membership" model="ir.sequence"> |
||||
|
<field name="name">Gym Membership sequence</field> |
||||
|
<field name="code">gym.membership</field> |
||||
|
<field name="prefix">MEMPLAN/</field> |
||||
|
<field name="padding">4</field> |
||||
|
<field name="company_id" eval="False"/> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,6 @@ |
|||||
|
## Module <gym_mgmt_system> |
||||
|
|
||||
|
#### 04.01.2024 |
||||
|
#### Version 17.0.1.0.0 |
||||
|
#### ADD |
||||
|
- Initial commit for GYM Management System |
@ -0,0 +1,35 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import exercise_for |
||||
|
from . import gym_exercise |
||||
|
from . import gym_membership |
||||
|
from . import gym_report |
||||
|
from . import hr_employee |
||||
|
from . import measurement_history |
||||
|
from . import my_workout_plan |
||||
|
from . import product_template |
||||
|
from . import res_partner |
||||
|
from . import sale_order |
||||
|
from . import trainer_skill |
||||
|
from . import workout_days |
||||
|
from . import workout_plan |
||||
|
from . import workout_plan_option |
@ -0,0 +1,34 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class ExerciseFor(models.Model): |
||||
|
"""This model mention why this exercise for.""" |
||||
|
_name = "exercise.for" |
||||
|
_inherit = ["mail.thread", "mail.activity.mixin"] |
||||
|
_description = "Gym Exercise For" |
||||
|
|
||||
|
name = fields.Char(string="Name", help='This hold the name ') |
||||
|
company_id = fields.Many2one('res.company', string='Company', |
||||
|
default=lambda self: self.env.company, |
||||
|
help='This field hold the company id') |
@ -0,0 +1,72 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import api, fields, models, _ |
||||
|
from odoo.addons.web_editor.tools import get_video_embed_code |
||||
|
from odoo.exceptions import ValidationError |
||||
|
|
||||
|
|
||||
|
class GymExercise(models.Model): |
||||
|
"""The model gym. exercise for defining the exercises.""" |
||||
|
_name = "gym.exercise" |
||||
|
_inherit = ["mail.thread", "mail.activity.mixin", "image.mixin"] |
||||
|
_description = "Gym Exercises" |
||||
|
_columns = { |
||||
|
'image': fields.Binary("Image", help="This field holds the image" |
||||
|
)} |
||||
|
|
||||
|
name = fields.Char(string="Name", help='Define the name of exercise') |
||||
|
exercise_for_ids = fields.Many2many("exercise.for", |
||||
|
string="Exercise For", |
||||
|
help='For which part this exercise') |
||||
|
equipment_id = fields.Many2one('product.product', |
||||
|
string='Equipment', |
||||
|
required=True, tracking=True, |
||||
|
domain="[('is_gym_product', '!=',False)]", |
||||
|
help='The equipment used') |
||||
|
note_benefit = fields.Html(string='Note', help='Can add note here') |
||||
|
note_step = fields.Html(string='Note', help='Can add note step') |
||||
|
embed_code = fields.Html(compute="_compute_embed_code", sanitize=False, |
||||
|
help='The embed code') |
||||
|
video_url = fields.Char(string='Video URL', |
||||
|
help='URL of a video for showcasing your product.') |
||||
|
image = fields.Binary(string="Image", help="This field holds the image") |
||||
|
image12 = fields.Binary(string="Image", help="This field holds the image") |
||||
|
image123 = fields.Binary(string="Image", help="This field holds the image") |
||||
|
image124 = fields.Binary(string="Image", help="This field holds the image") |
||||
|
company_id = fields.Many2one('res.company', string='Company', |
||||
|
default=lambda self: self.env.company, |
||||
|
help='This field hold the company id') |
||||
|
|
||||
|
@api.constrains('video_url') |
||||
|
def _check_valid_video_url(self): |
||||
|
"""Check url is valid or not """ |
||||
|
for image in self: |
||||
|
if image.video_url and not image.embed_code: |
||||
|
raise ValidationError( |
||||
|
_("Provided video URL for '%s' is not valid. " |
||||
|
"Please enter a valid video URL.", image.name)) |
||||
|
|
||||
|
@api.depends('video_url') |
||||
|
def _compute_embed_code(self): |
||||
|
"""To get video field """ |
||||
|
for image in self: |
||||
|
image.embed_code = get_video_embed_code(image.video_url) |
@ -0,0 +1,87 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import api, fields, models, _ |
||||
|
|
||||
|
|
||||
|
class GymMembership(models.Model): |
||||
|
"""This model is for gym membership.""" |
||||
|
_name = "gym.membership" |
||||
|
_inherit = ["mail.thread", "mail.activity.mixin"] |
||||
|
_description = "Gym Membership" |
||||
|
_rec_name = "reference" |
||||
|
|
||||
|
reference = fields.Char(string='GYM reference', readonly=True, |
||||
|
default=lambda self: _('New'), |
||||
|
help="Member reference") |
||||
|
member_id = fields.Many2one('res.partner', string='Member', |
||||
|
required=True, tracking=True, |
||||
|
help="Member taken the membership", |
||||
|
domain="[('is_gym_member', '!=',False)]") |
||||
|
membership_scheme_id = fields.Many2one('product.product', |
||||
|
string='Membership scheme', |
||||
|
help="Member ship scheme", |
||||
|
required=True, tracking=True, |
||||
|
domain="[('membership_date_from', " |
||||
|
"'!=',False)]") |
||||
|
paid_amount = fields.Float(string="Paid Amount", tracking=True, |
||||
|
help="The amount paid for the membership") |
||||
|
membership_fees = fields.Float(string="Membership Fees", tracking=True, |
||||
|
help="The membership fees", |
||||
|
related="membership_scheme_id.list_price") |
||||
|
sale_order_id = fields.Many2one('sale.order', string='Sales Order', |
||||
|
ondelete='cascade', copy=False, |
||||
|
help="Order reference", |
||||
|
readonly=True) |
||||
|
membership_date_from = fields.Date(string='Membership Start Date', |
||||
|
related="membership_scheme_id." |
||||
|
"membership_date_from", |
||||
|
help='Date from which membership ' |
||||
|
'becomes active.') |
||||
|
membership_date_to = fields.Date(string='Membership End Date', |
||||
|
related="membership_scheme_id.membership_" |
||||
|
"date_to", |
||||
|
help='Date until which membership remains' |
||||
|
'active.') |
||||
|
company_id = fields.Many2one('res.company', string='Company', |
||||
|
default=lambda self: self.env.company, |
||||
|
help='The field hold the company id') |
||||
|
state = fields.Selection([ |
||||
|
('draft', 'Draft'), |
||||
|
('confirm', 'Confirm'), |
||||
|
('cancelled', 'Cancelled') |
||||
|
], default='draft', string='Status', |
||||
|
help="The status of record defined here") |
||||
|
|
||||
|
_sql_constraints = [ |
||||
|
('membership_date_greater', |
||||
|
'check(membership_date_to >= membership_date_from)', |
||||
|
'Error ! Ending Date cannot be set before Beginning Date.') |
||||
|
] |
||||
|
|
||||
|
@api.model |
||||
|
def create_multi(self, vals): |
||||
|
"""Sequence number for membership """ |
||||
|
if vals.get('reference', 'New') == 'New': |
||||
|
vals['reference'] = self.env['ir.sequence'].next_by_code( |
||||
|
'gym.membership') or 'New' |
||||
|
res = super(GymMembership, self).create(vals) |
||||
|
return res |
@ -0,0 +1,31 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class GymReport(models.Model): |
||||
|
"""This module is for the gym report.""" |
||||
|
_name = "gym.report" |
||||
|
_inherit = ["mail.thread", "mail.activity.mixin"] |
||||
|
_description = "Gym Report" |
||||
|
|
||||
|
name = fields.Char(string="Name", help="Name of the report") |
@ -0,0 +1,34 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class HrEmployee(models.Model): |
||||
|
"""Inherited the model hr employee for adding some field to check whether he |
||||
|
is trainer or not.""" |
||||
|
_inherit = 'hr.employee' |
||||
|
|
||||
|
is_trainer = fields.Boolean(string='Gym Trainer', |
||||
|
help="The employee is trainer ") |
||||
|
exercise_for_ids = fields.Many2many("trainer.skill", |
||||
|
string="Specialization", |
||||
|
help="Skill of the trainer") |
@ -0,0 +1,97 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import api, fields, models |
||||
|
|
||||
|
|
||||
|
class MeasurementHistory(models.Model): |
||||
|
"""This model used for measurement history.""" |
||||
|
_name = "measurement.history" |
||||
|
_inherit = ["mail.thread", "mail.activity.mixin"] |
||||
|
_description = "Measurement History" |
||||
|
_rec_name = "gender" |
||||
|
|
||||
|
def _get_default_weight_uom(self): |
||||
|
""" to get default weight uom """ |
||||
|
return self.env[ |
||||
|
'product.template']._get_weight_uom_name_from_ir_config_parameter() |
||||
|
|
||||
|
member_id = fields.Many2one('res.partner', string='Member', |
||||
|
tracking=True, required=True, |
||||
|
domain="[('is_gym_member', '!=',False)]", |
||||
|
help='Name of the member') |
||||
|
gender = fields.Selection([ |
||||
|
('male', 'Male'), |
||||
|
('female', 'Female'), |
||||
|
('other', 'Other'), |
||||
|
], string="Gender", required=True, help='Select the gender') |
||||
|
age = fields.Integer(string='Age', tracking=True, required=True, |
||||
|
help='Age of the member') |
||||
|
weight = fields.Float( |
||||
|
'Weight', digits='Stock Weight', store=True, |
||||
|
help='Define the your weight') |
||||
|
weight_uom_name = fields.Char(string='Weight unit of measure label', |
||||
|
default=_get_default_weight_uom, |
||||
|
help='Weight of uom') |
||||
|
height = fields.Float( |
||||
|
'Height', digits='Stock Height', store=True, help='Define your ' |
||||
|
'height') |
||||
|
height_uom_name = fields.Char(string='Height unit of measure label', |
||||
|
default='cm', help='Uom for height') |
||||
|
bmi = fields.Float(string='BMI', store=True, |
||||
|
compute='_compute_display_name', help='Calculate BMI') |
||||
|
bmr = fields.Float(string='BMR', store=True, |
||||
|
compute='_compute_display_name', |
||||
|
help='Calculate BMR') |
||||
|
neck = fields.Float(string='Neck', store=True, help='The length of neck') |
||||
|
biceps = fields.Float(string='Biceps', store=True, |
||||
|
help='The length of biceps') |
||||
|
calf = fields.Float(string='Calf', store=True, help='The length of calf') |
||||
|
hips = fields.Float(string='Hips', store=True, help='The length of hips') |
||||
|
chest = fields.Float(string='Chest', store=True, |
||||
|
help='The length of chest') |
||||
|
waist = fields.Float(string='Waist', store=True, |
||||
|
help='The length of waist') |
||||
|
thighs = fields.Float(string='Thighs', store=True, |
||||
|
help='The length of thighs') |
||||
|
date = fields.Date(string='Date', |
||||
|
help='Date from which measurement active.') |
||||
|
company_id = fields.Many2one('res.company', string='Company', |
||||
|
default=lambda self: self.env.company, |
||||
|
help="This field hold the company id") |
||||
|
|
||||
|
@api.depends('weight', 'height') |
||||
|
def _compute_display_name(self): |
||||
|
"""Based on weight and height ,calculate the bmi and bmr""" |
||||
|
self.bmi = self.bmr = 0 |
||||
|
self.display_name = self.member_id.name |
||||
|
if self.weight and self.height: |
||||
|
self.bmi = (self.weight / self.height / self.height) * 10000 |
||||
|
if self.gender == "male": |
||||
|
self.bmr = 66.47 + (13.75 * self.weight) + \ |
||||
|
(5.003 * self.height) - (6.755 * self.age) |
||||
|
if self.gender == "female": |
||||
|
self.bmr = 655.1 + (9.563 * self.weight) + \ |
||||
|
(1.85 * self.height) - (6.755 * self.age) |
||||
|
else: |
||||
|
self.bmi = 1 |
||||
|
self.bmr = 1 |
||||
|
self.display_name = self.member_id.name |
@ -0,0 +1,40 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class MyWorkoutPlan(models.Model): |
||||
|
"""This model for showing my workout plans.""" |
||||
|
_name = "my.workout.plan" |
||||
|
_inherit = ["mail.thread", "mail.activity.mixin", "image.mixin"] |
||||
|
_description = "My Workout Plan" |
||||
|
_rec_name = "payment_term_id" |
||||
|
|
||||
|
payment_term_id = fields.Many2one('workout.plan', |
||||
|
string="Name", help="payment term ") |
||||
|
assign_to_id = fields.Many2one('res.partner', |
||||
|
string='Assign To', |
||||
|
domain="[('is_gym_member', '!=',False)]", |
||||
|
default=lambda self: self.env.user, |
||||
|
help="Assigned person") |
||||
|
from_date = fields.Date(string='Date From', help="Start date") |
||||
|
to_date = fields.Date(string='Date To', help="End date") |
@ -0,0 +1,32 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class ProductTemplate(models.Model): |
||||
|
"""Inherited the model product Template for adding a field.""" |
||||
|
_inherit = 'product.template' |
||||
|
|
||||
|
is_gym_product = fields.Boolean(string='Gym Product', |
||||
|
help='This help to define the product ' |
||||
|
'whether' |
||||
|
'it is gym product') |
@ -0,0 +1,62 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import api, fields, models |
||||
|
|
||||
|
|
||||
|
class ResPartner(models.Model): |
||||
|
"""Inherited the partner model for adding gym related fields.""" |
||||
|
_inherit = 'res.partner' |
||||
|
|
||||
|
is_gym_member = fields.Boolean(string='Gym Member', default=True, |
||||
|
help='This field define the whether is ' |
||||
|
'member of gym') |
||||
|
membership_count = fields.Integer(string='Membership Count', |
||||
|
compute='_compute_membership_count', |
||||
|
help='This help to count the membership') |
||||
|
measurement_count = fields.Integer(string='Measurement Count', |
||||
|
compute='_compute_measurement_count', |
||||
|
help='This helps to get the umber of ' |
||||
|
'measurements for gym members') |
||||
|
|
||||
|
def _compute_membership_count(self): |
||||
|
"""Number of membership for gym members """ |
||||
|
for rec in self: |
||||
|
rec.membership_count = self.env['gym.membership'].search_count([ |
||||
|
('member_id', '=', rec.id)]) |
||||
|
|
||||
|
def _compute_measurement_count(self): |
||||
|
"""Number of measurements for gym members """ |
||||
|
for rec in self: |
||||
|
rec.measurement_count = self.env[ |
||||
|
'measurement.history'].search_count([('member_id', '=', |
||||
|
rec.id)]) |
||||
|
|
||||
|
@api.constrains('is_gym_member') |
||||
|
def _validate_gym_member(self): |
||||
|
"""Select sale person to assign workout plan """ |
||||
|
if self.is_gym_member: |
||||
|
return { |
||||
|
'warning': { |
||||
|
'title': 'User Error', |
||||
|
'message': 'select sale person (sales & purchase) ' |
||||
|
'to assign workout plan'} |
||||
|
} |
@ -0,0 +1,42 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import models, _ |
||||
|
|
||||
|
|
||||
|
class SaleOrder(models.Model): |
||||
|
"""Inherit the sale.order model for supering the action confirm.""" |
||||
|
_inherit = "sale.order" |
||||
|
|
||||
|
def action_confirm(self): |
||||
|
""" Membership created directly from sale order confirmed """ |
||||
|
product = self.env['product.product'].search([ |
||||
|
('membership_date_from', '!=', False), |
||||
|
('id', '=', self.order_line.product_id.id)]) |
||||
|
for record in product: |
||||
|
self.env['gym.membership'].create([ |
||||
|
{'member_id': self.partner_id.id, |
||||
|
'membership_date_from': record.membership_date_from, |
||||
|
'membership_scheme_id': self.order_line.product_id.id, |
||||
|
'sale_order_id': self.id, |
||||
|
}]) |
||||
|
res = super().action_confirm() |
||||
|
return res |
@ -0,0 +1,35 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class TrainerSkill(models.Model): |
||||
|
"""This model is showing the trainer skill.""" |
||||
|
_name = "trainer.skill" |
||||
|
_inherit = ["mail.thread", "mail.activity.mixin"] |
||||
|
_description = "Trainer Skill" |
||||
|
|
||||
|
name = fields.Char(string="Name", help="Name of the trainer") |
||||
|
code = fields.Char(string="Code", help="Code for the trainer") |
||||
|
company_id = fields.Many2one('res.company', string='Company', |
||||
|
default=lambda self: self.env.company, |
||||
|
help="This field hold company id") |
@ -0,0 +1,31 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models, _ |
||||
|
|
||||
|
|
||||
|
class WorkoutDays(models.Model): |
||||
|
"""This model is used for getting workout days.""" |
||||
|
_name = "workout.days" |
||||
|
_description = "Days given for Workout" |
||||
|
|
||||
|
name = fields.Char(string='Workout days', required=True, |
||||
|
help="Days given for Workout") |
@ -0,0 +1,58 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author:Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models, _ |
||||
|
|
||||
|
|
||||
|
class WorkoutPlan(models.Model): |
||||
|
"""The model contain workout plan.""" |
||||
|
_name = "workout.plan" |
||||
|
_inherit = ["mail.thread", "mail.activity.mixin", "image.mixin"] |
||||
|
_description = "Workout Plan" |
||||
|
|
||||
|
name = fields.Char(string="Name", help="Name of the workout plan") |
||||
|
workout_days_ids = fields.Many2many("workout.days", |
||||
|
string="Workout Days", help="Workout " |
||||
|
"days") |
||||
|
workout_plan_option_ids = fields.One2many( |
||||
|
'workout.plan.option', 'order_id', |
||||
|
string='Optional Products Lines', help="Workout plan option") |
||||
|
company_id = fields.Many2one('res.company', string='Company', |
||||
|
default=lambda self: self.env.company, |
||||
|
help="The current company") |
||||
|
|
||||
|
def action_workout_plan(self): |
||||
|
"""Wizard opened to create my workout plans """ |
||||
|
assign_workout_form = self.env.ref( |
||||
|
'gym_mgmt_system.view_workout_plan_wizard', False) |
||||
|
assign_workout_id = self.env['assign.workout'].create({ |
||||
|
'workout_plan_id': self.id, |
||||
|
}) |
||||
|
return { |
||||
|
'name': _('Assign Workout Plan'), |
||||
|
'type': 'ir.actions.act_window', |
||||
|
'res_model': 'assign.workout', |
||||
|
'res_id': assign_workout_id.id, |
||||
|
'view_id': assign_workout_form, |
||||
|
'view_type': 'form', |
||||
|
'view_mode': 'form', |
||||
|
'target': 'new', |
||||
|
} |
@ -0,0 +1,50 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class WorkoutPlanOption(models.Model): |
||||
|
"""This model workout plan option is used adding the option for the workout |
||||
|
""" |
||||
|
_name = "workout.plan.option" |
||||
|
_description = "Workout Option" |
||||
|
_order = 'id' |
||||
|
|
||||
|
order_id = fields.Many2one('workout.plan', string='Workout' |
||||
|
' Plan Reference', |
||||
|
ondelete='cascade', |
||||
|
index=True, help="Workout plan") |
||||
|
name = fields.Text(string='Description', required=True, |
||||
|
help="Name of the workout plan option") |
||||
|
exercise_id = fields.Many2one('gym.exercise', string='Exercises', |
||||
|
required=True, help="Exercise for the plan") |
||||
|
equipment_id = fields.Many2one('product.product', |
||||
|
string='Equipment', required=True, |
||||
|
tracking=True, help="Equipment for the " |
||||
|
"workout", |
||||
|
domain="[('is_gym_product', '!=',False)]", ) |
||||
|
sets = fields.Integer(string="Sets", help="Number of sets") |
||||
|
repeat = fields.Integer(string="Repeat", help="Number of repeat for cycle") |
||||
|
company_id = fields.Many2one('res.company', string='Company', |
||||
|
required=True, readonly=True, |
||||
|
default=lambda self: self.env.company, |
||||
|
help="The current company") |
@ -0,0 +1,22 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!--The security for the gym_mgmt_system--> |
||||
|
<record model="ir.module.category" id="module_category_gym_operator"> |
||||
|
<field name="name">Gym Management</field> |
||||
|
<field name="description">category for Gym Management</field> |
||||
|
</record> |
||||
|
<record id="group_gym_member" model="res.groups"> |
||||
|
<field name="name">Member</field> |
||||
|
<field name="category_id" ref="module_category_gym_operator"/> |
||||
|
</record> |
||||
|
<record id="group_gym_trainer" model="res.groups"> |
||||
|
<field name="name">Trainer</field> |
||||
|
<field name="category_id" ref="module_category_gym_operator"/> |
||||
|
<field name="implied_ids" eval="[(4, ref('group_gym_member'))]"/> |
||||
|
</record> |
||||
|
<record id="group_gym_operator" model="res.groups"> |
||||
|
<field name="name">Operator</field> |
||||
|
<field name="category_id" ref="module_category_gym_operator"/> |
||||
|
<field name="implied_ids" eval="[(4, ref('group_gym_trainer'))]"/> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,44 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- multi-company rule--> |
||||
|
<record id="gym_management_exercise_rule" model="ir.rule"> |
||||
|
<field name="name">Gym Management Exercise Rule</field> |
||||
|
<field name="model_id" ref="model_gym_exercise"/> |
||||
|
<field name="domain_force">[('company_id', 'in', company_ids)]</field> |
||||
|
</record> |
||||
|
<record id="gym_management_exercise_for_rule" model="ir.rule"> |
||||
|
<field name="name">Gym Management Exercise For Rule</field> |
||||
|
<field name="model_id" ref="model_exercise_for"/> |
||||
|
<field name="domain_force">[('company_id', 'in', company_ids)]</field> |
||||
|
</record> |
||||
|
<record id="gym_management_measurement_history_rule" model="ir.rule"> |
||||
|
<field name="name">Gym Management Measurement History Rule</field> |
||||
|
<field name="model_id" ref="model_measurement_history"/> |
||||
|
<field name="domain_force">[('company_id', 'in', company_ids)]</field> |
||||
|
</record> |
||||
|
<record id="gym_managment_trainer_rule" model="ir.rule"> |
||||
|
<field name="name">Gym Management Trainer Rule</field> |
||||
|
<field name="model_id" ref="model_hr_employee"/> |
||||
|
<field name="domain_force">[('company_id', 'in', company_ids)]</field> |
||||
|
</record> |
||||
|
<record id="gym_management_gym_member_rule" model="ir.rule"> |
||||
|
<field name="name">Gym Management Gym Member Rule</field> |
||||
|
<field name="model_id" ref="model_res_partner"/> |
||||
|
<field name="domain_force">['|',('company_id','=',False),('company_id', 'in', company_ids)]</field> |
||||
|
</record> |
||||
|
<record id="gym_managment_gym_membership_rule" model="ir.rule"> |
||||
|
<field name="name">Gym Management Membership Rule</field> |
||||
|
<field name="model_id" ref="model_gym_membership"/> |
||||
|
<field name="domain_force">[('company_id', 'in', company_ids)]</field> |
||||
|
</record> |
||||
|
<record id="gym_management_trainer_skill_rule" model="ir.rule"> |
||||
|
<field name="name">Gym Management Trainer skill Rule</field> |
||||
|
<field name="model_id" ref="model_trainer_skill"/> |
||||
|
<field name="domain_force">[('company_id', 'in', company_ids)]</field> |
||||
|
</record> |
||||
|
<record id="gym_management_trainer_skill_rule" model="ir.rule"> |
||||
|
<field name="name">Gym Management Trainer skill Rule</field> |
||||
|
<field name="model_id" ref="model_trainer_skill"/> |
||||
|
<field name="domain_force">[('company_id', 'in', company_ids)]</field> |
||||
|
</record> |
||||
|
</odoo> |
|
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 589 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 1.8 MiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 837 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 137 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 75 KiB |
After Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 28 KiB |