Thanks again for help.<div><br><div class="gmail_quote">2012/10/11 Yusei TAHARA <span dir="ltr">&lt;<a href="mailto:yusei@nexedi.com" target="_blank">yusei@nexedi.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
In such case, you first need to add a custom mysql table and<br>
corresponding zsqlmethods to portal_catalog. Because portal_catalog<br>
does not cover all properties of document. Only some specific<br>
properties are searchable.<br>
<br>
About person document, it has start_date, but it is not a<br>
delivery/movement. Thus person&#39;s start_date is not indexed and it is<br>
not searchable by default.<br>
<br>
erp5_ingestion_mysql_innodb_catalog is a good example to know how<br>
to extend catalog.<br>
<br>
Regards,<br>
Yusei<br>
<br>
<br>
On Thu, 11 Oct 2012 11:33:04 +0200<br>
<div class="HOEnZb"><div class="h5">pavel lstiburek &lt;<a href="mailto:plstiburek@gmail.com">plstiburek@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Thanks, this will do most of times.<br>
&gt; But what if i for example need to find all person older than 20. If try to<br>
&gt; find it by date i get error.<br>
&gt; Person is not movement or delivery. How to deal with such case?<br>
&gt;<br>
&gt; Pavel Lstiburek<br>
&gt;<br>
&gt; 2012/10/11 Yusei TAHARA &lt;<a href="mailto:yusei@nexedi.com">yusei@nexedi.com</a>&gt;<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; There are two sets of date time columns in catalog. One is<br>
&gt; &gt; delivery.start_date and delivery.stop_date. The other one is<br>
&gt; &gt; movement.start_date and movement.stop_date.<br>
&gt; &gt;<br>
&gt; &gt; If you search movement type document like sale order line, sale<br>
&gt; &gt; packing list line, you need to use &quot;movement.start_date&quot;. And<br>
&gt; &gt; if you search delivery type doucment like sale order, sale<br>
&gt; &gt; packing list, then you need &quot;delivery.start_date&quot;.<br>
&gt; &gt;<br>
&gt; &gt; And then you also need to add listbox_delivery_start_date datetime<br>
&gt; &gt; field to listbox to control datetime formating for example.<br>
&gt; &gt;<br>
&gt; &gt; You can find many example implementations. One good example is<br>
&gt; &gt; portal_skins/erp5_trade/SaleOrderModule_viewSaleOrderList in<br>
&gt; &gt; erp5_trade business template.<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt; Yusei<br>
&gt; &gt;<br>
&gt; &gt; On Thu, 11 Oct 2012 11:05:10 +0200<br>
&gt; &gt; pavel lstiburek &lt;<a href="mailto:plstiburek@gmail.com">plstiburek@gmail.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt; i keep running into problems with start_date and stop_date.<br>
&gt; &gt; &gt; Usualy it says me *Could not map those columns: set([&#39;stop_date&#39;])*<br>
&gt; &gt; &gt; I coudnt search by it, but searching with creation_date is no problem.<br>
&gt; &gt; &gt; Can someone tell how to fix this error, or where can i look for script<br>
&gt; &gt; that<br>
&gt; &gt; &gt; defines start_date or stop_date?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt; Pavel Lstiburek<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Yusei TAHARA &lt;<a href="mailto:yusei@nexedi.com">yusei@nexedi.com</a>&gt;<br>
&gt; &gt; Nexedi: Consulting and Development of Free / Open Source Software<br>
&gt; &gt; <a href="http://www.nexedi.co.jp/" target="_blank">http://www.nexedi.co.jp/</a><br>
&gt; &gt; ERP5: Full Featured High End Open Source ERP<br>
&gt; &gt; <a href="http://www.erp5.com/" target="_blank">http://www.erp5.com/</a><br>
&gt; &gt; ERP5 Wiki: Developer Zone for ERP5 Community<br>
&gt; &gt; <a href="http://www.erp5.org/" target="_blank">http://www.erp5.org/</a><br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Erp5-dev mailing list<br>
&gt; &gt; <a href="mailto:Erp5-dev@erp5.org">Erp5-dev@erp5.org</a><br>
&gt; &gt; <a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev" target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Pavel Lstiburek<br>
<br>
<br>
--<br>
Yusei TAHARA &lt;<a href="mailto:yusei@nexedi.com">yusei@nexedi.com</a>&gt;<br>
Nexedi: Consulting and Development of Free / Open Source Software<br>
<a href="http://www.nexedi.co.jp/" target="_blank">http://www.nexedi.co.jp/</a><br>
ERP5: Full Featured High End Open Source ERP<br>
<a href="http://www.erp5.com/" target="_blank">http://www.erp5.com/</a><br>
ERP5 Wiki: Developer Zone for ERP5 Community<br>
<a href="http://www.erp5.org/" target="_blank">http://www.erp5.org/</a><br>
_______________________________________________<br>
Erp5-dev mailing list<br>
<a href="mailto:Erp5-dev@erp5.org">Erp5-dev@erp5.org</a><br>
<a href="https://mail.tiolive.com/mailman/listinfo/erp5-dev" target="_blank">https://mail.tiolive.com/mailman/listinfo/erp5-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Pavel Lstiburek<br>
</div>