~vauxoo/addons-vauxoo/6.0-trunk

« back to all changes in this revision

Viewing changes to inventory_stock_report/wizard/stock_total.py

[MERGE] from local .bzrignore

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) OpenERP Venezuela (<http://openerp.com.ve>).
6
6
#    All Rights Reserved
7
 
###############Credits######################################################
8
 
#    Coded by: Vauxoo C.A.           
 
7
# Credits######################################################
 
8
#    Coded by: Vauxoo C.A.
9
9
#    Planified by: Nhomar Hernandez
10
10
#    Audited by: Vauxoo C.A.
11
11
#############################################################################
21
21
#
22
22
#    You should have received a copy of the GNU Affero General Public License
23
23
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
24
 
################################################################################
25
 
 
26
 
from osv import fields, osv
27
 
import tools
28
 
from tools.translate import _
29
 
 
30
 
 
31
 
ESTADO =   [('desarrollo' , 'En Desarrollo')    ,
32
 
            ('produccion', 'En Produccion')     ,
33
 
            ('fin', 'Fin del Ciclo de Vida')    ,
34
 
            ('obsoleto', 'Obsoleto')            ,
35
 
            ('none', 'None')                    ,
36
 
           ]
37
 
TIPO =   [('almacenable' , 'Almacenable')       ,
38
 
            ('consumible', 'Consumible')        ,
39
 
            ('servicio', 'Servicio')            ,
40
 
           ]
41
 
SUMINISTRO =   [('comprar' , 'Comprar')         ,
42
 
                ('producir', 'Producir')        ,
43
 
           ]
44
 
 
45
 
class stock_total(osv.osv_memory):
 
24
##########################################################################
 
25
 
 
26
from openerp.osv import osv, fields
 
27
import openerp.tools as tools
 
28
from openerp.tools.translate import _
 
29
 
 
30
 
 
31
ESTADO = [('desarrollo', 'En Desarrollo'),
 
32
          ('produccion', 'En Produccion'),
 
33
          ('fin', 'Fin del Ciclo de Vida'),
 
34
          ('obsoleto', 'Obsoleto'),
 
35
          ('none', 'None'),
 
36
          ]
 
37
TIPO = [('almacenable', 'Almacenable'),
 
38
        ('consumible', 'Consumible'),
 
39
        ('servicio', 'Servicio'),
 
40
        ]
 
41
SUMINISTRO = [('comprar', 'Comprar'),
 
42
              ('producir', 'Producir'),
 
43
              ]
 
44
 
 
45
 
 
46
class stock_total(osv.TransientModel):
46
47
    """
47
48
    Conteo del Stock
48
49
    """
49
50
    _name = "stock.total"
50
51
    _columns = {
51
 
        'tipo':fields.selection(TIPO, 'Tipo')                                   , 
52
 
        'categoria': fields.many2one('product.category', 'Categorias')          ,
53
 
        'estado':fields.selection(ESTADO, 'Estado')                             , 
54
 
        'suministro':fields.selection(SUMINISTRO, 'Metodo de Suministro')       , 
55
 
        'vendible': fields.boolean("Vendible")                                  ,
56
 
        'comprable': fields.boolean("Comprable")                                ,
57
 
        'alquilable': fields.boolean("Alquilable")                              ,
 
52
        'tipo': fields.selection(TIPO, 'Tipo'),
 
53
        'categoria': fields.many2one('product.category', 'Categorias'),
 
54
        'estado': fields.selection(ESTADO, 'Estado'),
 
55
        'suministro': fields.selection(SUMINISTRO, 'Metodo de Suministro'),
 
56
        'vendible': fields.boolean("Vendible"),
 
57
        'comprable': fields.boolean("Comprable"),
 
58
        'alquilable': fields.boolean("Alquilable"),
 
59
        'stockmayorcero': fields.boolean("Stock Mayor a Cero"),
58
60
    }
59
61
 
60
 
stock_total()
61
62
 
62
63
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: