Wrong effective date on journal entry when importing invoices in bank statement
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 3 |
Bug Description
When you have account_payment (depends on account_voucher) installed you can select invoices into a bank statement. When you confirm the bank statement effective date of the journal entries generated are wrong. Now effective date is the date of an invoice but it obviously should be the date of the bank statement line.
<speculation>
The problem is originated in account_voucher module file account_voucher.py where account.
There is a obvious reason not to set new date in that module; account_move_line object does not let you change date in lines which are not in draft state.
With following patches journal entries works as expected. But overwriting write -method in account_move_line and let a date to be changed is not a good idea for sure.
account_
951c951
< return move_line_
---
> return move_line_
account/
1139c1139
< if ('account_id' in vals) or ('journal_id' in vals) or ('period_id' in vals) or ('move_id' in vals) or ('debit' in vals) or ('credit' in vals) or ('date' in vals):
---
> if ('account_id' in vals) or ('journal_id' in vals) or ('period_id' in vals) or ('move_id' in vals) or ('debit' in vals) or ('credit' in vals):
</speculation>
The OpenERP version I'm using is 6.0.2
Related branches
- Mustufa Rangwala (Open ERP) (community): Approve
- Ashvin Rathod (OpenERP) (community): Needs Resubmitting
- qdp (OpenERP): Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedaccount_voucher/account_voucher.py (+1/-1)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
Hello,
If the payment is done though voucher than the effective date is the current date, But if the payment is done through bank statement than the effective date is incorrect, which doesn't show current date.
Thank you.