44
44
args = [('type', '=', 'purchase_refund')]
45
45
if user.company_id.instance_id:
46
46
args.append(('is_current_instance','=',True))
47
journal = obj_journal.search(cr, uid, [('type', '=', 'purchase_refund'), ('is_current_instance', '=', True)])
48
48
return journal and journal[0] or False
50
50
def fields_view_get(self, cr, uid, view_id=None, view_type=False, context=None, toolbar=False, submenu=False):