Discussion:
[Erp5-dev] [Fwd: [Erp5-report] ERP5, ERP5Catalog]
Guillaume MICHON
2006-03-07 10:35:37 UTC
Permalink
-------- Original Message --------
User: guillaume
Date: 2006-03-07 11:19:22
Module: ERP5Catalog

Respect related keys naming conventions for keys related to
getTrackingList() and getInventory()

M sql/erp5_mysql/properties.xml

http://cvs.erp5.org/ERP5Catalog/sql/erp5_mysql/properties.xml.diff?r1=1.24&r2=1.25




Hello,

I modified related keys related to getTrackingList(), in order to
respect naming conventions. The part of code which uses these keys also
handle getInventory(), so I had to modify related keys for
getInventory() too.
This means, if you update your code from CVS, that your stock navigator
will be broken, even if you don't create a new site from it. You need to
make a small change in catalog to make it working :

- First access catalog by using
http://localhost:9080/erp5/portal_catalog/erp5_mysql/manage , then click
the Properties tab.

- In the last property (sql_catalog_related_keys), search for this line
: "stock_mirrorSectionCategory |
category/category_uid/z_related_mirror_section_uid_from_stock" and
replace the first part of the line by "stock_mirror_section_category_uid "

- Replace also :
"stock_nodeCategory" by "stock_node_category_uid",
"stock_paymentCategory" by "stock_payment_category_uid",
"stock_resourceCategory" by "stock_resource_category_uid",
"stock_sectionCategory" by "stock_section_category_uid"

- If you updated your code recently and created a new site from it, you
need to replace also :
"item_resourceCategory" by "item_resource_category_uid",
"item_sectionCategory" by "item_section_category_uid",
"item_nodeCategory" by "item_node_category_uid"

If you know a better way to update these keys in an existing site,
please correct this mail.
Regards,
--
Guillaume MICHON

ASC - Architecture Systems & Consulting S.A.
3 Rue des Artisans L-3895 Foetz
T?l +352 26 17 60 03
Fax +352 26 17 60 07
GSM +352 091 360 090
Loading...