[Trunk/7.0] Refund payment: Error occurred while validating the field(s) amount_currency

Bug #1181291 reported by Stefano Sforzi
50
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP R&D Addons Team 3
OpenERP Community Backports (Addons)
Status tracked in 7.0
7.0
Fix Released
Medium
OpenERP Community Backports

Bug Description

http://7-0-11185.runbot.openerp.com/?db=7-0-11185-all&ts=1368805793379#id=62&view_type=form&model=account.invoice&menu_id=422&action=462

I create a purchase refund in USD

I pay it with usd bank (USD journal)

pay and

ValidateError

Error occurred while validating the field(s) amount_currency: The amount expressed in the secondary currency must be positive when the journal item is a debit and negative when if it is a credit.

Tags: voucher

Related branches

summary: - Error occurred while validating the field(s) amount_currency
+ [7.0] Refund payment: Error occurred while validating the field(s)
+ amount_currency
description: updated
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

Same error faced when try following scenario.
Create journal voucher use the journal currency different then the company currency.

Try to create voucher with negative amount .

Thank you!

summary: - [7.0] Refund payment: Error occurred while validating the field(s)
+ [Trunk/7.0] Refund payment: Error occurred while validating the field(s)
amount_currency
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
Maik Steinfeld (maik-steinfeld) wrote :

Tried related branches:

refund payment works but Refund stays in state open

Amit Parik (amit-parik)
tags: added: voucher
Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote :

Hello Openerp Guys,

Any update about the resolution of this bug both in Trunk as in Stable Branches,

Regards

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

Hi August Peter, please be careful not to change the bug status. Resetting to fix-committed on ocb-addons.

Revision history for this message
August Peter (monspace) wrote :

Hello,

Sorry for the inconvenience.
I am new here and am interested by the resolution of this bug.
I have inadvertently changed the status. Sorry again for that.

Where can i get the fix code please ?

Regards

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

Hi August Peter, no problem.

You can find the bugfixing branch attached to this bug: https://code.launchpad.net/~elbati/openobject-addons/7.0_fix_1181291_elbati. You can only use this if you run OpenERP from a bzr branch. In that case you can merge the bugfixing branch into your main branch. For futher assitance with this process, search for these topics at http://help.openerp.com.

Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

Hello Stefano Sforzi,

Thanks for reporting. This bug has been resolved in
branch : https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1181291-bde
with following:
Revision ID : <email address hidden>
Revision Number : 9024

Once verified by our experts it will be merged in addons soon.

Thanks & Regards,
Devnani Bharat R.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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