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

« back to all changes in this revision

Viewing changes to account_move_line_dp_product/account_move_line.py

  • Committer: Nhomar Hernandez
  • Date: 2013-04-19 20:33:12 UTC
  • mfrom: (542.1.314 addons-vauxoo)
  • Revision ID: nhomar@gmail.com-20130419203312-o35v7dn79l6vur0t
[MERGE - PEP8 AND V7-MIG] All migrated to V7 Just
improved osv.osv => osv.Model, osv.osv_memory => osv.TransientModel
import inside openerp.* enviroment
Erased class instansiation no necesarry anymore in V7
AUTOPEP8 run, Left PEP8 long lines manually.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#    Module Writen to OpenERP, Open Source Management Solution
5
5
#    Copyright (C) Vauxoo (<http://vauxoo.com>).
6
6
#    All Rights Reserved
7
 
###############Credits######################################################
 
7
# Credits######################################################
8
8
#    Coded by: Juan Carlos Funes(juan@vauxoo.com)
9
9
#############################################################################
10
10
#    This program is free software: you can redistribute it and/or modify
19
19
#
20
20
#    You should have received a copy of the GNU Affero General Public License
21
21
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
 
################################################################################
 
22
##########################################################################
23
23
from openerp.tools.translate import _
24
24
 
25
25
from openerp.osv import osv, fields
26
26
import decimal_precision as dp
27
27
 
 
28
 
28
29
class account_move_line(osv.Model):
29
30
    _inherit = 'account.move.line'
30
31
 
31
32
    _columns = {
32
33
        'quantity': fields.float('Quantity', digits_compute=dp.get_precision('Product UoM'), help="The optional quantity expressed by this line, eg: number of product sold. The quantity is not a legal requirement but is very useful for some reports."),
33
34
    }
34
 
account_move_line()
35