~openerp-community/openerp-mexico-localization/trunk-l10n_mx_payroll

« back to all changes in this revision

Viewing changes to l10n_mx_facturae_pac_sf/params_pac.py

  • Committer: echeverrifm at gmail
  • Date: 2012-11-26 04:41:29 UTC
  • Revision ID: echeverrifm@gmail.com-20121126044129-g3a3sqeczqslc1vy
[ADD] Add modules Trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- encoding: utf-8 -*-
 
2
###########################################################################
 
3
#    Module Writen to OpenERP, Open Source Management Solution
 
4
#
 
5
#    Copyright (c) 2011 Vauxoo - http://www.vauxoo.com
 
6
#    All Rights Reserved.
 
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
############################################################################
 
13
#
 
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.
 
18
#
 
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.
 
23
#
 
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/>.
 
26
#
 
27
##############################################################################
 
28
 
 
29
import time
 
30
from tools.translate import _
 
31
from osv import fields, osv
 
32
import pooler
 
33
 
 
34
 
 
35
class params_pac(osv.osv):
 
36
    _inherit = 'params.pac'
 
37
    
 
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)
 
40
        types.extend([
 
41
            ('pac_sf_cancelar','PAC SF - Cancelar'),
 
42
            ('pac_sf_firmar','PAC SF - Firmar'),
 
43
        ])
 
44
        return types
 
45
    
 
46
    _columns = {
 
47
        'method_type': fields.selection(_get_method_type_selection, "Proceso a realizar", type='char', size=64, required=True),
 
48
    }
 
49
params_pac()
 
50