Created
April 24, 2020 03:11
-
-
Save oriewancu/3f3b988e5733f12285f3c1d6af970f12 to your computer and use it in GitHub Desktop.
app_rumah_sakit model pasien
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from odoo import models, fields | |
| class RumahsakitPasien(models.Model): | |
| _name = 'rumahsakit.pasien' | |
| _description = 'Master Pasien' | |
| nama = fields.Char(string='Nama', required=True) | |
| umur = fields.Integer(string='Umur') | |
| keterangan = fields.Text(string='Catatan') | |
| foto = fields.Binary(string='Foto', attachment=True) | |
| gender = fields.Selection([ | |
| ('laki', 'Laki-laki'), | |
| ('perempuan', 'Perempuan') | |
| ], string='Jenis Kelamin', default='laki') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment