~vauxoo/addons-vauxoo/6.0-trunk

« back to all changes in this revision

Viewing changes to analytic_entry_line_journal/model/account_analytic.py

  • Committer: Moises Lopez
  • Date: 2014-10-09 21:30:17 UTC
  • mfrom: (879.1.7 trunk-addons-vauxoo)
  • Revision ID: moylop260@vauxoo.com-20141009213017-u3jicyg8xery3r8c
[MERGE] upforward 7.0
-Fix unused import
-Fix relative import
-Fix full path import
-Fix trailing whitespace pylint error C0303
-Fix autopep8 ignoring E501 & E128
-Fix reimported
-Fix __openerp__.py files
-Translate update

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
# -*- encoding: utf-8 -*-
 
3
###############################################################################
 
4
#    Module Writen to OpenERP, Open Source Management Solution
 
5
#    Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
 
6
#    All Rights Reserved
 
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.
 
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
 
 
27
from openerp.osv import fields, osv
 
28
 
 
29
 
 
30
class account_analytic_line(osv.Model):
 
31
 
 
32
    _inherit = 'account.analytic.line'
 
33
 
 
34
    _columns = {
 
35
        'general_journal_id': fields.related('move_id', 'journal_id', string='General Journal',
 
36
            type='many2one', relation='account.journal', store=True),
 
37
    }