openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #02326
Re: [Merge] lp:~openerp-community/openobject-addons/trunk-bug-1090224 into lp:openobject-addons
Is a similar problem, you need save the field or search method on the
function field for use group
El 25/02/2013 20:02, "Eric Caudal" <eric.caudal@xxxxxxxxxxxxxx> escribió:
> If it is not stored, can it be used in Group by?
>
> Eric Caudal*CEO*
> --*Elico Corporation, Shanghai branchOpenERP Premium Certified Training Partner *
> Cell: + 86 186 2136 1670
> Office: + 86 21 6211 8017/27/37
> Skype: elico.corperic.caudal@elico-corp.comhttp://www.elico-corp.com
>
> [image: Elico Corp]
> On 02/25/2013 11:16 PM, Jose Antonio Morales Ponce(vauxoo) wrote:
>
> Well it all depends on whether you want the record or field is not in the
> db.
>
> If you want the field will not save, store = False to be, it will make the
> sensible and calculated field to display automatic, fnct_search there if
> you need because there is being saved.
>
> If you are using store = {model: method} the field is saved in the db and
> calculated each time you have a change in the selected model, as this is
> saved no need to use a fnct_search.
>
> It's about what you need at that time, if you want to save the field or not
> El 25/02/2013 10:26, "Michael Telahun Makonnen" <mmakonnen@xxxxxxxxx> <mmakonnen@xxxxxxxxx>
> escribió:
>
>
> Ok. I hadn't thought of that.
> My main point was that it should be searchable. Otherwise, it's broken.
>
> Which way is the recommended way?
> 1. store=False and use fnct_search
> or
> 2. store={...} (and have the value in the db updated when the related
> field changes).
>
> I'm just wondering for my own future reference.
>
> Regards,
> Mike.
>
> --
> https://code.launchpad.net/~openerp-community/openobject-addons/trunk-bug-1090224/+merge/149980
> Your team OpenERP Community is subscribed to branch
> lp:~openerp-community/openobject-addons/trunk-bug-1090224.
>
> _______________________________________________
> 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
>
>
>
> _______________________________________________
> 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
>
>
References