~vauxoo/addons-vauxoo/8.0-import_tax_tariff-dev-yani-rev-2

« back to all changes in this revision

Viewing changes to account_analytic_active_field/account_analytic_account.py

  • Committer: Luis Ernesto García Medina
  • Date: 2013-09-18 20:01:06 UTC
  • mto: (543.7.273 vauxoo-addons)
  • mto: This revision was merged to the branch mainline in revision 841.
  • Revision ID: ernesto_gm@vauxoo.com-20130918200106-2jbcnmm11cq6q16i
[ADD][account_analytic_active_field] added field Avtive to model account_analytic_account and add in view

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
###########################################################################
 
3
#    Module Writen to OpenERP, Open Source Management Solution
 
4
#
 
5
#    Copyright (c) 2012 Vauxoo - http://www.vauxoo.com
 
6
#    All Rights Reserved.
 
7
#    info@vauxoo.com
 
8
############################################################################
 
9
#    Coded by: Luis Ernesto García Medina (ernesto_gm@vauxoo.com)
 
10
############################################################################
 
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
 
14
#    published by the Free Software Foundation, either version 3 of the
 
15
#    License, or (at your option) any later version.
 
16
#
 
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.
 
21
#
 
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
#
 
25
##############################################################################
 
26
from openerp.osv import osv, fields
 
27
from openerp.tools.translate import _
 
28
 
 
29
class account_analytic_account(osv.Model):
 
30
    _name = "account.analytic.account"
 
31
    _inherit = "account.analytic.account"
 
32
    
 
33
    _columns = {
 
34
        'active' : fields.boolean('Active')
 
35
    }