2
# -*- encoding: utf-8 -*-
3
###############################################################################
4
# Module Writen to OpenERP, Open Source Management Solution
5
# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
7
############# Credits #########################################################
8
# Coded by: Yanina Aular <yani@vauxoo.com>
9
# Planified by: Humberto Arocha <hbto@vauxoo.com>
10
# Audited by: Humberto Arocha <hbto@vauxoo.com>
11
###############################################################################
12
# This program is free software: you can redistribute it and/or modify
13
# it under the terms of the GNU Affero General Public License as published
14
# by the Free Software Foundation, either version 3 of the License, or
15
# (at your option) any later version.
17
# This program is distributed in the hope that it will be useful,
18
# but WITHOUT ANY WARRANTY; without even the implied warranty of
19
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
# GNU Affero General Public License for more details.
22
# You should have received a copy of the GNU Affero General Public License
23
# along with this program. If not, see <http://www.gnu.org/licenses/>.
24
###############################################################################
27
from lxml import etree
29
from openerp.osv import fields, osv
30
from openerp import tools
31
from openerp.tools.translate import _
33
class account_analytic_group(osv.Model):
34
_name = 'account.analytic.group'
37
'name' : fields.char('Name', required=True, size=128),
40
class account_analytic_account(osv.Model):
41
_inherit = 'account.analytic.account'
44
'analytic_group_id': fields.many2one('account.analytic.group', 'Analytic Group'),