wrong voucher created from bank statement
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
In bank statement, if you try import one journal item in journal with general type, you will receive this message:
"The amount of the voucher must be the same amount as the one on the statement line."
This occurs because if you create one payment using one account journal with general type, the account.
type = 'general'
ttype = amount < 0 and 'payment' or 'receipt'
sign = 1
if line.journal_
elif line.journal_
To fix this, the code should be this:
type = 'general'
ttype = amount < 0 and 'payment' or 'receipt'
sign = amount < 0 and -1 or 1
if line.journal_
elif line.journal_
Best regards,
Renato Lima - http://
In addons/7.0 revision #9672