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
| [Unit] | |
| Description=Odoo12 | |
| Documentation=https://www.odoo.com | |
| [Service] | |
| Type=simple | |
| User=ansori | |
| ExecStart=/usr/bin/python3 /home/ansori/Projects/odoo12/odoo-bin -c /home/ansori/Projects/odoo12/odoo.conf | |
| [Install] |
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
| # -*- coding: utf-8 -*- | |
| from odoo import models, fields, api, _ | |
| from odoo.exceptions import ValidationError | |
| class ResPartner(models.Model): | |
| _inherit = 'res.partner' | |
| @api.model | |
| def create(self, vals_list): |
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
| <?xml version="1.0" encoding='UTF-8'?> | |
| <odoo> | |
| <data noupdate="1"> | |
| <!-- sequence master data pasien --> | |
| <record id="seq_rumahsakit_pasien" model="ir.sequence"> | |
| <field name="name">Sequence Pasien</field> | |
| <field name="code">rumahsakit.pasien.sequence</field> | |
| <field name="prefix">PN</field> | |
| <field name="padding">4</field> | |
| <field name="company_id" eval="False"/> |
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, api | |
| class RumahsakitPasien(models.Model): | |
| _name = 'rumahsakit.pasien' | |
| _description = 'Master Pasien' | |
| _rec_name = 'nama' | |
| nama = fields.Char(string='Nama', required=True) | |
| umur = fields.Integer(string='Umur') | |
| keterangan = fields.Text(string='Catatan') |
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
| id | name | model_id:id | group_id:id | perm_read | perm_write | perm_create | perm_unlink | |
|---|---|---|---|---|---|---|---|---|
| access_rumahsakit_pasien | access.rumahsakit.pasien | model_rumahsakit_pasien | 1 | 1 | 1 | 1 |
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 . import 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
| { | |
| 'name': 'Rumah Sakit', | |
| 'version': '12.0.1.0.0', | |
| 'description': 'Modul untuk Manajemen Rumah Sakit', | |
| 'summary': 'Modul untuk Manajemen Rumah Sakit', | |
| 'author': 'Ansori', | |
| 'website': 'https://ansori.web.id', | |
| 'license': 'LGPL-3', | |
| 'category': 'Extra Tools', | |
| 'depends': [], |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <odoo> | |
| <!-- view tree: pasien --> | |
| <record id="view_pasien_tree" model="ir.ui.view"> | |
| <field name="name">rumahsakit.pasien.tree</field> | |
| <field name="model">rumahsakit.pasien</field> | |
| <field name="arch" type="xml"> | |
| <tree string="Pasien"> | |
| <field name="nama" /> |
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) |