~vauxoo/addons-vauxoo/6.0-trunk

« back to all changes in this revision

Viewing changes to multireport_base/payment_method.py

  • Committer: Openerp User
  • Author(s): Vauxoo
  • Date: 2012-07-26 20:13:13 UTC
  • Revision ID: openerp@ingelub-erp-20120726201313-cgffyvd3zmqhn2w4

[FIX] bug a la hora de confirmar una orden de venta cuando el producto es de tipo servicio 
tomaba dicho porducto como si este fuera almacenable y tuviera stock cosa que no es asi 

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 openerp.osv import fields, osv
24
 
from openerp.tools.translate import _
25
 
 
26
 
 
27
 
class payment_method(osv.Model):
 
23
from osv import osv
 
24
from osv import fields
 
25
from tools.translate import _
 
26
 
 
27
class payment_method(osv.osv):
28
28
    """
29
29
    payment_method
30
30
    """
31
 
 
 
31
    
32
32
    _name = 'payment.method'
33
 
 
 
33
    
34
34
    _columns = {
35
 
        'name': fields.char('Payment method', size=64, required=False, translate=True),
36
 
    }
 
35
        'name':fields.char('Payment method', size=64, required=False, translate=True),
 
36
        }
 
37
 
 
38
payment_method()