~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to analytic_distribution/account_invoice_refund.py

  • Committer: vg at tempo-consulting
  • Date: 2015-04-09 07:28:58 UTC
  • mto: This revision was merged to the branch mainline in revision 2469.
  • Revision ID: vg@tempo-consulting.fr-20150409072858-z86n2aqgqxsr4ynw
US-193 [FIX] refund wizard default journal id: builded domain was never passed to search()

Show diffs side-by-side

added added

removed removed

Lines of Context:
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)])
 
47
        journal = obj_journal.search(cr, uid, args)
48
48
        return journal and journal[0] or False
49
49
 
50
50
    def fields_view_get(self, cr, uid, view_id=None, view_type=False, context=None, toolbar=False, submenu=False):