flectra/addons/rest_api/models/ir_model.py

12 lines
345 B
Python
Raw Normal View History

2018-01-18 10:23:31 +01:00
# -*- 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")