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
** Changed in: openobject-addons
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/871314
Title:
cannot duplicate journal entries
Status in OpenERP Addons (modules):
Fix Released
Bug description:
How to reproduce:
- select an existing journal entry
- click duplicate
- change the period or journal on the new journal entry
- click save -> Error occurred while validating the field(s) line_id: You
cannot create entries on different periods/journals in the same move
The attached patch solves this by propagating the change on the move
object to the move lines.
Best regards,
-sbi
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/871314/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp