[6.1, 7.0, account_voucher] Wrong amounts with line type set to credit on journal voucher
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
Steps to reproduce;
- using lp:openobject-addons/trunk revno 8076, install new database and chart of accounts e.g. l10n_nl
- install account_voucher
- set default income and expense accounts of purchase journal to '7002, purchases'
- go to Invoicing -> Journal entries -> Journal vouchers
- create a new entry. Set type to 'purchase', select 'Purchase journal', Choose a partner.
- create a new voucher line. Account is set to 7002 by default. Set amount to €50,-. Set line type to 'Credit'.
- post voucher
Expected results:
One move line debit €50 on the account payable
one move line credit €50 on '7002, purchases'
Observed results:
One move line debit €100 on the account payable
another move line credit €50 on the account payable
one move line credit €50 on '7002, purchases'
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 243 lines (+60/-36)2 files modifiedaccount_voucher/account_voucher.py (+59/-36)
account_voucher/test/account_voucher.yml (+1/-0)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: voucher |
It's a regression, right?
I mean, we never know may be one day, regressions are given the attention they deserve, so that's why I would advise to do like in every serious company: put the word "regression" in the bug report title. I mean it's just a technical advice just in case...
Thanks for the report.