Discussion:
[Erp5-dev] category tool
Sebastien Robin
2005-01-26 10:55:19 UTC
Permalink
Hi all,

I have modified the Category Tool in order to improve the interface for
the manager. So actually, it is possible to modify categories with the
same manner as the business template tool.

If you want it to work on an existing erp5 site, you should update your
business template erp5_core.

If you want to acces to the interface, then you can simply enter the url :

http://[localhost:9673]/web_site_name/portal_categories/view

You can notice that you can easily set an 'int_index' on categories, this
is very usefull in order to display categories in the order you want.

For example, if you want to change the order of a gender field, let's say
that you prefer display Male before Female, then you can go on the
category tool, select the Base Category 'gender', then set on the listbox
on the bottom an int index for male and female :
id int_index
male 1
female 2

Then on your ERP5Form (for example the one called Person_view), you can
use the following expression:
python:
here.portal_categories.gender.getCategoryChildLogicalPathItemList(sort_id='int_index')

And then male will be displayed before female.


Seb.
--
Sebastien Robin, Nexedi Technical Director
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
ERP5: Free / Open Source ERP Software for small and medium companies
http://www.erp5.org
Storever: OpenBrick, WiFi infrastructure, notebooks and servers
http://www.storever.com
Loading...