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

« back to all changes in this revision

Viewing changes to multireport_base/invoice.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:
1
1
# -*- encoding: utf-8 -*-
2
2
##############################################################################
3
3
#
4
 
#    OpenERP, Open Source Management Solution    
 
4
#    OpenERP, Open Source Management Solution
5
5
#    Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
6
6
#    author.name@company.com
7
7
#
20
20
#
21
21
##############################################################################
22
22
 
23
 
from osv import osv
24
 
from osv import fields
25
 
from tools.translate import _
26
 
 
27
 
class account_invoice(osv.osv):
 
23
from openerp.osv import fields, osv
 
24
from openerp.tools.translate import _
 
25
 
 
26
 
 
27
class account_invoice(osv.Model):
28
28
    """
29
29
    account_invoice
30
30
    """
31
 
    
 
31
 
32
32
    _inherit = 'account.invoice'
33
33
    _columns = {
34
 
        'payment_method_id':fields.many2one('payment.method', 'Payment Method', required=False, help="In this field selects the payment method with which to cancel the invoice"),
 
34
        'payment_method_id': fields.many2one('payment.method', 'Payment Method', required=False, help="In this field selects the payment method with which to cancel the invoice"),
35
35
    }
36
 
account_invoice()