mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2025-12-23 13:15:31 +02:00
add new module
This commit is contained in:
12
hr_insurance/models/policy_details.py
Normal file
12
hr_insurance/models/policy_details.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import models, fields, api
|
||||
|
||||
|
||||
class InsurancePolicy(models.Model):
|
||||
_name = 'insurance.policy'
|
||||
|
||||
name = fields.Char(string='Name', required=True)
|
||||
note_field = fields.Html(string='Comment', help="Notes for the insurance policy if any")
|
||||
company_id = fields.Many2one('res.company', string='Company', required=True, help="Company",
|
||||
default=lambda self: self.env.user.company_id)
|
||||
Reference in New Issue
Block a user