1
# -*- coding: utf-8 -*-
2
##############################################################################
4
# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>)
5
# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
8
# This program is free software: you can redistribute it and/or modify
9
# it under the terms of the GNU Affero General Public License as published
10
# by the Free Software Foundation, either version 3 of the License, or
11
# (at your option) any later version.
13
# This program is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
# GNU General Public License for more details.
18
# You should have received a copy of the GNU Affero General Public License
19
# along with this program. If not, see <http://www.gnu.org/licenses/>.
21
##############################################################################
23
from osv import fields, osv
25
class account_analytic_move(osv.osv):
26
_name = 'account.analytic.move'
27
_description = 'Analytic Move'
30
'name': fields.char('Name', size=64, required=True),
31
'line_ids': fields.one2many('account.analytic.line', 'analytic_move_id', 'Analytic Lines'),
33
account_analytic_move()
35
class account_analytic_line(osv.osv):
36
_inherit = 'account.analytic.line'
38
'analytic_move_id': fields.many2one('account.analytic.move', 'Analytic Move'),
40
account_analytic_line()