Given the fact that account.move has the following constraint:
def check_date(self):
self.period.start_date <= self.date <= self.period.end_date
Is there a reason that makes it necessary to have the field period in
account.move? If somebody tries to modify a move in a closed period we could
simply check if the period corresponding to the given date is closed and
that's it. No need for storing it.
--
Albert Cervera i Areny
http://www.NaN-tic.com
Tel: +34 93 553 18 03
http://twitter.com/albertnan
http://www.nan-tic.com/blog
--
[email protected] mailing list