2009-10-20 10:52:23 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2006-12-07 13:41:40 +00:00
|
|
|
##############################################################################
|
2010-03-09 14:28:07 +00:00
|
|
|
#
|
2009-01-07 14:52:34 +00:00
|
|
|
# OpenERP, Open Source Management Solution
|
2009-11-26 14:12:40 +00:00
|
|
|
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
2008-06-16 07:24:04 +00:00
|
|
|
#
|
2008-11-03 18:27:16 +00:00
|
|
|
# This program is free software: you can redistribute it and/or modify
|
2009-11-26 14:12:40 +00:00
|
|
|
# it under the terms of the GNU Affero General Public License as
|
|
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
|
|
# License, or (at your option) any later version.
|
2006-12-07 13:41:40 +00:00
|
|
|
#
|
2008-11-03 18:27:16 +00:00
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2009-11-26 14:12:40 +00:00
|
|
|
# GNU Affero General Public License for more details.
|
2006-12-07 13:41:40 +00:00
|
|
|
#
|
2009-11-26 14:12:40 +00:00
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
2010-03-09 14:28:07 +00:00
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2006-12-07 13:41:40 +00:00
|
|
|
#
|
2008-11-03 18:27:16 +00:00
|
|
|
##############################################################################
|
2006-12-07 13:41:40 +00:00
|
|
|
|
2014-07-06 14:44:26 +00:00
|
|
|
from ..exceptions import except_orm
|
|
|
|
from .orm import Model, TransientModel, AbstractModel
|
2006-12-07 13:41:40 +00:00
|
|
|
|
2013-01-30 13:44:51 +00:00
|
|
|
# Deprecated, kept for backward compatibility.
|
|
|
|
# openerp.exceptions.Warning should be used instead.
|
|
|
|
except_osv = except_orm
|
2012-12-09 03:49:10 +00:00
|
|
|
|
2013-01-30 13:44:51 +00:00
|
|
|
# Deprecated, kept for backward compatibility.
|
2011-08-16 10:46:50 +00:00
|
|
|
osv = Model
|
|
|
|
osv_memory = TransientModel
|
2011-09-23 12:45:25 +00:00
|
|
|
osv_abstract = AbstractModel # ;-)
|
2010-01-12 12:52:16 +00:00
|
|
|
|
2009-01-07 14:52:34 +00:00
|
|
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|