openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #04844
Re: Re-Compute storable function field
Maybe you can port smile_action_trigger module for your version, in version
6 I used it to trigger a write method(server action) in models that I've
need to recalculate
https://github.com/Smile-SA/smile_openerp_addons_6.0
You can run whenever you want server action, this is the simplest way that
I know
2014-02-06 Francesco Apruzzese <cescoap@xxxxxxxxx>:
>
> Il 06/02/2014 15:51, Christopher Ormaza ha scritto:
>
> 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 |
>
>
> Too much work for a stupid problem. I think all our solutions arre valid
> but every solution require too time for this type of problem. I think a
> solution can be to add the possibility to pass a parameter to terminal when
> you lanch openerp that indcate to re-calculate the function. So a developer
> can test his code in a simplest way.
>
--
[image: logo]
*Christopher Ormaza* * OpenERP Expert* *, Ecuadorenlinea.net*
| Mobile: 593980160581
chris.ormaza@xxxxxxxxx | http://openerpecuador.org |
References