Comment 4 for bug 777640

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote : Re: Journal_id, Period_id in account.move.line

After discussing in R&D, here is a bit or rationale for these fields:
- they are needed for performance reason on account.move.line to avoid indirect lookups every time
- they must be exposed sometimes to the user, e.g. when doing manual journal entries (no parent move exists to take the values from)

However, as described in this bug and its duplicate(s), the current implementation indeed needs to be improved with regard to values copy/sync and field visibility, in the following manner:

1) Values copy/sync: if possible the fields should be converted to fields.related, so that their values are properly synchronized/shared between lines and their move. If fields.related does not work because of the journal items line-by-line creation, then perhaps this can work with function fields instead.

2) Visibility: the default form and tree views for account.move.line should never contain these fields. They should only appear when the stock move values are not directly visible (probably mainly in the Journal Items menu)

I am confirming the current bug (which has a better description) and marking bug 713539 as a duplicate.