Skip to content

Instantly share code, notes, and snippets.

@sehrishnaz
Created September 9, 2020 07:38
Show Gist options
  • Save sehrishnaz/86ba6b1b511606b28d1db4b50a86260b to your computer and use it in GitHub Desktop.
Save sehrishnaz/86ba6b1b511606b28d1db4b50a86260b to your computer and use it in GitHub Desktop.
Create New Model in Odoo13
# -*- coding: utf-8 -*-
from odoo import models, fields, api
class ModelA(models.Model):
_name = 'model.a'
name = fields.Char(string="Name")
age = fields.Integer(string="Age")
student_dob = fields.Date(string="Date of Birth")
marks = fields.Float(string="marks")
image = fields.Binary(string='Photo')
gender = fields.Selection([('Male', 'Male'), ('Female', 'Female'), ('Other', 'Other')], string='Gender')
address = fields.Text()
@sehrishnaz
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment