flectra/addons/rest_api/models/ir_model.py
2018-01-18 14:54:14 +05:30

12 lines
345 B
Python

# -*- coding: utf-8 -*-
# Part of Flectra. See LICENSE file for full copyright and licensing details.
from flectra import api, fields, models, modules, _
class IrModel(models.Model):
_inherit = 'ir.model'
rest_api = fields.Boolean('REST API', default=True,
help="Enable REST API for this object/model")