Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

aa.gusti / project

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Issues 0
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Charts
  • Create a new issue
  • Issue Boards
Odoo devel model

Odoo devel model

Last edited by aa.gusti Nov 07, 2021
Page History

Models

<< Odoo - Forms >>

  1. Membuat model baru:
class Pelayanan(models.Model):
    _name = 'pdl.kab.pelayanan'
    name= fields.String(string='Uraian',
                              help="Check if the contact is a hotel, otherwise it is non hotel")
  1. Membuat model turunan:
class ResPartner(models.Model):
    _name = 'res.partner'
    _inherit = 'res.partner'
    is_hotel = fields.Boolean(string='Is a Company', default=False,
                              help="Check if the contact is a hotel, otherwise it is non hotel")

Penjelasan lebih lanjut bisa dilihat di https://www.odoo.com/documentation/15.0/developer/reference/backend/orm.html

  Clone repository
  • Big data
  • Dw pajak
  • Hadoop
  • Hive
  • Home
  • Odoo
  • Odoo devel
  • Odoo devel action
  • Odoo devel form
  • Odoo devel model
  • Odoo devel pdl
  • Odoo devel pdl objek pajak
  • Odoo devel pdl product_category
  • Odoo devel view area
  • Odoo qa
More Pages
×

New Wiki Page

Tip: You can specify the full path for the new file. We will automatically create any missing directories.