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

20
gym/models/company.py Normal file
View File

@@ -0,0 +1,20 @@
# See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ResCompany(models.Model):
_inherit = 'res.company'
default_password = fields.Char('Password', default='gym',
help="""This will be used as a
default password when a
user gets automatically created
when an employee is created!""")
default_umo_of_height_id = fields.Many2one('uom.uom',
string='Unit of Height')
default_umo_of_weight_id = fields.Many2one('uom.uom',
string='Unit of Weight')
default_umo_of_measure_id = fields.Many2one('uom.uom',
string='Unit of Body Part '
'Measurement')