← Back to team overview

openerp-community team mailing list archive

Re: Re-Compute storable function field

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

> sometime I need to re-compute a field function based on a
> particular store structure. I need to recompute the function
> without change data in the original recod. It's possible? Now my
> solution is to set the store parameter on True, restart the OpenERP
> server, stop it, reset the store to the original value and start
> the server again. This make me crazy everytime.

create a button that calls _update_store
(http://bazaar.launchpad.net/~openerp/openobject-server/7.0/view/head:/openerp/osv/orm.py#L2795)
on the model/field you want to recompute

Wasn't there a development helper module floating around that does
stuff like this?

- -- 
Therp - Maatwerk in open ontwikkeling

Holger Brunn - Ontwerp en implementatie

mail: holger@xxxxxxxx
web: http://therp.nl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iF4EAREIAAYFAlLzljQACgkQAcl2D+yjrhhhogD+PHS1JoQD1YgbHYCgqCQ5+d1N
aJPmJEkuQyjYkn+Gul4BALsmwl8wkEIY21Ys+ehdMJQxkJEFjsVI9FM+EeNKbXU0
=HlH+
-----END PGP SIGNATURE-----


Follow ups

References