← Back to team overview

openerp-community team mailing list archive

Re: Re-Compute storable function field

 

I had the same problem, I resolved it as follows:

   - Create a class with one field of type datetime
   - The class had wanted to recalculate the fields without the
   intervention of some other process will add the datetime field as a trigger
   of the other class
   - Create a cron that was responsible for writing the datetime field
   which is sent to recalculate the fields of the class wanted to work

It's a little cumbersome but it worked me


2014-02-06 Francesco Apruzzese <cescoap@xxxxxxxxx>:

> Hi all,
>
> 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.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openerp-community
> Post to     : openerp-community@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openerp-community
> More help   : https://help.launchpad.net/ListHelp
>



-- 
[image: logo]
  *Christopher Ormaza* * OpenERP Expert* *, Ecuadorenlinea.net*
  | Mobile: 593980160581
 chris.ormaza@xxxxxxxxx  | http://openerpecuador.org |

Follow ups

References