On 08/04/11 16:47 +0200, Paul J Stevens wrote:
> 
> Hi all,
> 
> What is the usage envisioned for the _history model?

historize the modification of records.

> I'm building the support ticket system as designed by Cédric and
> Sharoon, but I can't find out how to access the history. Do I need to
> write manual accessors?
> 
> The only examples I can find that do stuff like this are
> sale_opportunity and ir.request, but they seem to do their own
> implementation of historization.
> 
> So what is the purpose of this attribute?

The attribute only active the historisation on the records of the Models but
the only way to access the historized data is by setting a _datetime in
context.
But in some cases like in sale_opportunity, you want to have read access on
those data (or a subset). For that you must create your own Model that will
use a SQL query as table. As this query is not generic and depends of the
business cases we can not provide a default one.

-- 
Cédric Krier

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

Attachment: pgpguuSSFBHoK.pgp
Description: PGP signature

Reply via email to