2009-10-13 05:58:37 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2008-12-29 09:02:05 +00:00
|
|
|
##############################################################################
|
2010-08-13 12:20:05 +00:00
|
|
|
#
|
2009-10-14 11:15:34 +00:00
|
|
|
# OpenERP, Open Source Management Solution
|
2010-01-12 09:18:39 +00:00
|
|
|
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
2008-12-29 09:02:05 +00:00
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
2009-10-14 11:15:34 +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.
|
2008-12-29 09:02:05 +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-10-14 11:15:34 +00:00
|
|
|
# GNU Affero General Public License for more details.
|
2008-12-29 09:02:05 +00:00
|
|
|
#
|
2009-10-14 11:15:34 +00:00
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
2010-08-13 12:20:05 +00:00
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2008-12-29 09:02:05 +00:00
|
|
|
#
|
|
|
|
##############################################################################
|
|
|
|
|
2012-12-06 14:56:32 +00:00
|
|
|
from openerp.osv import fields, osv
|
2008-12-29 09:02:05 +00:00
|
|
|
|
|
|
|
class l10n_fr_report(osv.osv):
|
|
|
|
_name = 'l10n.fr.report'
|
|
|
|
_description = 'Report for l10n_fr'
|
|
|
|
_columns = {
|
|
|
|
'code': fields.char('Code', size=64),
|
2014-05-21 09:52:05 +00:00
|
|
|
'name': fields.char('Name'),
|
2014-07-06 14:44:26 +00:00
|
|
|
'line_ids': fields.one2many('l10n.fr.line', 'report_id', 'Lines', copy=True),
|
2008-12-29 09:02:05 +00:00
|
|
|
}
|
|
|
|
_sql_constraints = [
|
2010-08-13 12:20:05 +00:00
|
|
|
('code_uniq', 'unique (code)','The code report must be unique !')
|
|
|
|
]
|
2010-08-18 04:53:14 +00:00
|
|
|
|
2008-12-29 09:02:05 +00:00
|
|
|
|
|
|
|
class l10n_fr_line(osv.osv):
|
|
|
|
_name = 'l10n.fr.line'
|
|
|
|
_description = 'Report Lines for l10n_fr'
|
|
|
|
_columns = {
|
|
|
|
'code': fields.char('Variable Name', size=64),
|
2014-05-21 09:52:05 +00:00
|
|
|
'definition': fields.char('Definition'),
|
|
|
|
'name': fields.char('Name'),
|
2008-12-29 09:02:05 +00:00
|
|
|
'report_id': fields.many2one('l10n.fr.report', 'Report'),
|
|
|
|
}
|
|
|
|
_sql_constraints = [
|
2010-08-13 12:20:05 +00:00
|
|
|
('code_uniq', 'unique (code)', 'The variable name must be unique !')
|
2008-12-29 09:02:05 +00:00
|
|
|
]
|
2010-08-18 04:53:14 +00:00
|
|
|
|
2008-12-29 09:02:05 +00:00
|
|
|
|
2012-10-02 11:12:31 +00:00
|
|
|
class res_company(osv.osv):
|
|
|
|
_inherit = 'res.company'
|
|
|
|
|
|
|
|
_columns = {
|
2014-05-21 09:52:05 +00:00
|
|
|
'siret': fields.char('SIRET', size=14),
|
|
|
|
'ape': fields.char('APE'),
|
2012-10-02 11:12:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-03-05 18:40:03 +00:00
|
|
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|