Ok, i choose a slightly different approach to fix the problem: i replaced the fields 'journal_id' and 'period_id' by fields.related ones (and i removed the constraint, because it became useless).
The reason why i choosed this solution and not the proposed one is because it seems much more clean and it renders a better design of the objects by including a more strong link between them... and also because it was really a kind of insanity not to have them already as fields.related! ^^
My patch has landed on trunk in revision 5366.
Anyway, thanks for the bug report and the proposal.
Quentin
Ok, i choose a slightly different approach to fix the problem: i replaced the fields 'journal_id' and 'period_id' by fields.related ones (and i removed the constraint, because it became useless).
The reason why i choosed this solution and not the proposed one is because it seems much more clean and it renders a better design of the objects by including a more strong link between them... and also because it was really a kind of insanity not to have them already as fields.related! ^^
My patch has landed on trunk in revision 5366.
Anyway, thanks for the bug report and the proposal.
Quentin