1

In openerp v6, I have a function field named zone

'zone' : fields.function(_get_zone, string="Zone", type='char', fnct_search=_zone_search),

I haven't create the _zone_search yet, anyone know how to make that function search by multiple input using comma(,) in just that one 'zone' field?

Example Zone = 12, 14, 15

  • 1
    Really, the best thing to do is not do that in the first place. Comma-separated lists in DB columns are bad design. http://stackoverflow.com/q/3653462/398670, http://dba.stackexchange.com/q/55871/7788, http://dba.stackexchange.com/q/17808/7788 – Craig Ringer Oct 09 '15 at 04:35
  • I am not saying that I save that zone field in DB, but I want to know it is possible to search multiple data (not using comma) in DB by using just only one filed – Sembarangan Oct 09 '15 at 06:06
  • In that case I don't understand the question. – Craig Ringer Oct 09 '15 at 06:15
  • 1
    Please add your question with example code. Like what your tried so far ? You made two function. 1. *_zone_search* and 2. *_get_zone*. And also insert any trace-back occurs. – Bhavesh Odedra Oct 09 '15 at 06:24

0 Answers0