On 13/10/12 18:07 +0200, Albert Cervera i Areny wrote:
> 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.

There is no garantee that you have only 1 period for a given date
because there are adjustment type.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpYf7FX95D4G.pgp
Description: PGP signature

Reply via email to