~openerp-commiter/openobject-addons/trunk-dev-addons3-mtr

« back to all changes in this revision

Viewing changes to account/wizard/account_tax_chart.py

[MERGE] branch merged with lp:~openerp-dev/openobject-addons/trunk-dev-addons3

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        if context is None:
55
55
            context = {}
56
56
        data = self.read(cr, uid, ids, [], context=context)[0]
57
 
        result = mod_obj._get_id(cr, uid, 'account', 'action_tax_code_tree')
58
 
        id = mod_obj.read(cr, uid, [result], ['res_id'], context=context)[0]['res_id']
 
57
        result = mod_obj.get_object_reference(cr, uid, 'account', 'action_tax_code_tree')
 
58
        id = result and result[1] or False
59
59
        result = act_obj.read(cr, uid, [id], context=context)[0]
60
60
        if data['period_id']:
61
61
            fiscalyear_id = period_obj.read(cr, uid, [data['period_id']], context=context)[0]['fiscalyear_id'][0]