[FIX] account: There is no sale_refund nor purchase_refund analytic journal
authorDenis Ledoux <dle@odoo.com>
Mon, 1 Dec 2014 14:28:00 +0000 (15:28 +0100)
committerDenis Ledoux <dle@odoo.com>
Mon, 1 Dec 2014 14:31:12 +0000 (15:31 +0100)
commit64fd5288c89cebf1746fe0a98f3b9cd449d010ae
treeb82b33c95c2b78a98d117da72a69ff585feda297
parent1fe6e8172d29ee6e4c42a1e6376fd75d64cee3d1
[FIX] account: There is no sale_refund nor purchase_refund analytic journal

During rev. cbe2dbb, type2journal was refactored, and set as a global variable in the top of the file, as it was use everywhere accross the file.
But, in this specific method _get_journal_analytic, this type2journal dict wasn't the same as everywhere else, as you can see at rev. d2ff95f for example. We must therefore set a specific type2journal dict for this specific method.
addons/account/account_invoice.py