add new module

This commit is contained in:
sonal arora
2020-07-21 10:09:46 +00:00
parent 800e7fdceb
commit c0d10e3fbe
1063 changed files with 243750 additions and 5 deletions

View 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)