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
################################################################################
26
from osv import fields, osv
28
from tools.translate import _
31
ESTADO = [('desarrollo' , 'En Desarrollo') ,
32
('produccion', 'En Produccion') ,
33
('fin', 'Fin del Ciclo de Vida') ,
34
('obsoleto', 'Obsoleto') ,
37
TIPO = [('almacenable' , 'Almacenable') ,
38
('consumible', 'Consumible') ,
39
('servicio', 'Servicio') ,
41
SUMINISTRO = [('comprar' , 'Comprar') ,
42
('producir', 'Producir') ,
45
class stock_total(osv.osv_memory):
24
##########################################################################
26
from openerp.osv import osv, fields
27
import openerp.tools as tools
28
from openerp.tools.translate import _
31
ESTADO = [('desarrollo', 'En Desarrollo'),
32
('produccion', 'En Produccion'),
33
('fin', 'Fin del Ciclo de Vida'),
34
('obsoleto', 'Obsoleto'),
37
TIPO = [('almacenable', 'Almacenable'),
38
('consumible', 'Consumible'),
39
('servicio', 'Servicio'),
41
SUMINISTRO = [('comprar', 'Comprar'),
42
('producir', 'Producir'),
46
class stock_total(osv.TransientModel):
49
50
_name = "stock.total"
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"),
62
63
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: