1
# -*- encoding: utf-8 -*-
2
###########################################################################
3
# Module Writen to OpenERP, Open Source Management Solution
5
# Copyright (c) 2011 Vauxoo - http://www.vauxoo.com
7
# info Vauxoo (info@vauxoo.com)
8
############################################################################
9
# Coded by: moylop260 (moylop260@vauxoo.com)
10
# Coded by: Isaac Lopez (isaac@vauxoo.com)
11
# Financed by: http://www.sfsoluciones.com (aef@sfsoluciones.com)
12
############################################################################
14
# This program is free software: you can redistribute it and/or modify
15
# it under the terms of the GNU Affero General Public License as
16
# published by the Free Software Foundation, either version 3 of the
17
# License, or (at your option) any later version.
19
# This program is distributed in the hope that it will be useful,
20
# but WITHOUT ANY WARRANTY; without even the implied warranty of
21
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
# GNU Affero General Public License for more details.
24
# You should have received a copy of the GNU Affero General Public License
25
# along with this program. If not, see <http://www.gnu.org/licenses/>.
27
##############################################################################
30
from tools.translate import _
31
from osv import fields, osv
35
class params_pac(osv.osv):
36
_inherit = 'params.pac'
38
def _get_method_type_selection(self, cr, uid, context=None):
39
types = super(params_pac, self)._get_method_type_selection(cr, uid, context=context)
41
('pac_sf_cancelar','PAC SF - Cancelar'),
42
('pac_sf_firmar','PAC SF - Firmar'),
47
'method_type': fields.selection(_get_method_type_selection, "Proceso a realizar", type='char', size=64, required=True),