On 06/09/12 16:55 +0200, Raimon Esteve wrote: > 2012/9/6 Cédric Krier <[email protected]>: > > Still don't understand. > > Why would you want to be able to similate an other datetime for now? > > Why you designed today method?
To be able to override it to managed a business date.
A business date is when you perform activity on the system but at a
different date than the current one.
> Buy now, you need:
>
> now = datetime.datetime.now()
> date = vals.get('field_datetime') or now
>
> if exist in ir.date today method (Date field), why not now method
> (DateTime field)?
Indeed, I ask you the opposite question.
--
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/
pgpgoYetKIbmJ.pgp
Description: PGP signature
