What is the usage envisioned for the _history model?
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?
Any pointers to documentation, examples or use-cases appreciated.
thanks.
--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
Hi all,
What is the usage envisioned for the _history model?
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?
Any pointers to documentation, examples or use-cases appreciated.
thanks.
--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
--
tryto...@googlegroups.com mailing list
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...@b2ck.com
Website: http://www.b2ck.com/
That's not a use-case, imo. More like a tautology. I meant: how can this
nice feature be made usable?
>> 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.
Ah. Nice trick!
> 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.
Thought so. No problem.
Thanks.
It is difficult to give you a "use-case" for a technical feature.
This feature is used in sale_opportunity, product_cost_history and also
account_invoice_history.
- sale_opportunity:
It allow to show modification of the opportunity (with a custom Model)
- product_cost_history:
It allow to display in list of graph view the modification of the product
cost price.
- account_invoice_history:
It allow to diplay the party record at the date when the invoice was
opened.