[Erp5-dev] Base_viewRelatedObjectList - little enhancement
Jerome Perrin
jerome at nexedi.com
Thu Sep 21 01:15:01 CEST 2006
On Wed, Sep 20, 2006 at 03:25:56PM +0200, Lukasz Nowak wrote:
> Hello,
>
> I wanted to override List Method while selecting objects in
> RelationStringField. Bartek told me to put:
>
> python: here.Base_getRelatedObjectParameter(parameter='list_method')
>
> in List Method in Base_viewRelatedObjectList, so I'm able to have my own list
> in RSF.
If I understand correctly, this will only affect the "full" list shown
when you press on the wheel, but not the "quick" list you get when you
only click the save button or press enter. It's a problem if they are
different.
> Is it possibile to made such addition in erp5_core? Or is it not
> set here, because such method is not ERP5ish?
You can already do some good filtering with related keys using "default
parameters", this become keywords arguments to the portal_catalog query.
For example, add "validation_state | validated" to display only
validated documents, if it's not enough, you can still use TALES or
define your custom related keys.
Jerome
More information about the Erp5-dev
mailing list