[6.1, 7.0, account_voucher] Wrong amounts with line type set to credit on journal voucher

Bug #1080840 reported by Stefan Rijnhart (Opener)
6
This bug affects 1 person
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'

Tags: voucher

Related branches

Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

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.

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

No, it's in 6.1 as well unfortunately

summary: - [7.0, account_voucher] Wrong amounts with line type set to credit on
- journal voucher
+ [6.1, 7.0, account_voucher] Wrong amounts with line type set to credit
+ on journal voucher
Revision history for this message
Mario Arias (the-clone-master) wrote :

Ever since we tried to use account_voucher on 6.0, it has been unusable... specially when using multiple currencies...

Thanks to enapps and their account_voucher_enapps total rewrite, we stopped suffering... ;-)

It is worth a look and try to adjust modules that depend on original account_voucher to work with enapps version...

Regards,
-Mario

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Well, looking at the Enapps module for vouchers, it does implement part of the necessary refactoring: it only implements (supplier and customer) payment vouchers and does away with sale and purchase vouchers. That way, it does not have to bother with taxes either. I think it is a very good design choice and it opens up the way for a dedicated module for sale and purchase vouchers.

We need a similar approach in standard OpenERP but it will lead to API changes.

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Josse Colpaert (OpenERP) (jco-openerp) wrote :

I reproduced the bug also, but we think the menuitem "Journal Vouchers" under Journal Entries should disappear as it is not relevant. You could do the same with Sales Receipt or by manually entering the journal entries. These functionalities don't have these bugs.

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Well, that is a valid workaround but I think having code that undocumentedly makes assumptions about the view that is being used is a bit of a timebomb in the core of your financial system. Having that said, the real problem is in the design of vouchers and using the same model for payment vouchers as well as sale and purchase vouchers and my patch does not solve that either.

Amit Parik (amit-parik)
tags: added: voucher
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.