← Back to team overview

openerp-expert-accounting team mailing list archive

[Bug 519133] Re: [5.0] The Centralisation check is required at write() as well.

 

Hello

Thank you for the reply.
First, I would like to apologize because I made a mistake in the description of the bug.
The bug appears ONLY when we want to change a date for an existing move line in a centralized journal.

Here are the steps to reproduce the problem :
1- create a cash journal with centralisation
2- enter several move line in a period with different dates --> the counterpart applies --> the move line date for the counterpart is setup at the period last day.
3- at this point, we have several move lines with different dates and the counterpart at the end of the period
4- close/reopen the journal
5- try to change the date for an existing move line --> bug : all the move lines (including the counterpart move lines) take the new date.

The screenshot Capture1.png shows the move lines before modifying the date.
The screenshot Capture2.png shows the move lines after setting the date to 04/10/2010 for the move line "test2".
(dates are in MM/DD/YYYY format)

The correct behaviour would be that the other move line dates would keep
their initial value.

Regards

-- 
[5.0] The Centralisation check is required at write() as well.
https://bugs.launchpad.net/bugs/519133
You received this bug notification because you are a member of OpenERP
Accounting Experts, which is a direct subscriber.

Status in OpenObject Addons Modules: In Progress

Bug description:
Hello

When modifying an entry line in a centralized journal (journal.centralisation=true), all the entry line dates get modified and take the modified entry line value.

The entry line dates should not be changed

I guess the solution is in the write function in account_move_line.py where we should find some 'if journal.centralisation:...' as it is in the create function.

Regards