~vauxoo/openerp-mexico-localization/7.0-l10n_mx_invoice_datetime-validate-dev-julio

« back to all changes in this revision

Viewing changes to l10n_mx_facturae_cbb/ir_sequence_approval.py

  • Committer: Jorge Angel Naranjo Rogel
  • Date: 2013-12-16 20:10:42 UTC
  • mfrom: (323.3.10 oml7.0-ids-nuevo)
  • Revision ID: jorge_nr@vauxoo.com-20131216201042-5ce3igsy9xh23jl9
[IMP] added context=None and if context is None

Merge from lp:~vauxoo/openerp-mexico-localization/7.0_l10n_mx_isinstance_ids_dev_carlos

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    _inherit = 'ir.sequence.approval'
33
33
 
34
34
    def _get_type(self, cr, uid, ids=None, context=None):
 
35
        if context is None:
 
36
            context = {}
35
37
        types = super(ir_sequence_approval, self)._get_type(
36
38
            cr, uid, ids, context=context)
37
39
        types.extend([