~salvador-martinez/openerp-mexico-localization/l10n_mx_70_Firma_PAC_CodeValidation_307-dev_SalvadorMartinez

« back to all changes in this revision

Viewing changes to l10n_mx_ir_attachment_facturae/ir_attachment_facturae.py

  • Committer: Isaac López
  • Date: 2013-11-20 20:37:08 UTC
  • mfrom: (320.2.6 lib_raise_jc)
  • Revision ID: isaac@vauxoo.com-20131120203708-orh54acu2nc3ccli
[MERGE] validates if the packages: xsltproc,openssl,xmlstarlet are not installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
        return True
118
118
 
119
119
    def signal_confirm(self, cr, uid, ids, context=None):
 
120
        if context is None:
 
121
            context = {}
 
122
        from l10n_mx_facturae_lib import facturae_lib
 
123
        msj, app_xsltproc_fullpath, app_openssl_fullpath, app_xmlstarlet_fullpath = facturae_lib.library_openssl_xsltproc_xmlstarlet(cr, uid, ids, context)
 
124
        if msj:
 
125
            raise osv.except_osv(_('Warning'),_(msj))
120
126
        try:
121
 
            if context is None:
122
 
                context = {}
123
127
            invoice_obj = self.pool.get('account.invoice')
124
128
            attach = ''
125
129
            msj = ''