简体   繁体   English

我如何为 odoo 开发自定义搜索

[英]How can i develop a custom search for odoo

How can I develop a custom search function for odoo to work with POS as I will be listing ore than 5000 products so i need an effective search.我如何为 odoo 开发自定义搜索功能以与 POS 配合使用,因为我将列出 5000 多种产品,因此我需要有效的搜索。

I know search in python RE is not effective but i wuld like to split the search to 2 like search "white" and "bread" seperate will first for bread, then white in those results.我知道在 python RE 中搜索无效,但我想将搜索拆分为 2,例如搜索“白色”和“面包”分开将首先搜索面包,然后在这些结果中搜索白色。 This is more effective, but it has to be from POS这更有效,但它必须来自POS

Are you talking about search views?您是在谈论搜索视图吗? If so, try Search section of this link: https://www.odoo.com/documentation/8.0/reference/views.html如果是这样,请尝试此链接的搜索部分: https : //www.odoo.com/documentation/8.0/reference/views.html

Your task, as you described it, can be done via search views.正如您所描述的,您的任务可以通过搜索视图完成。 I can do nothing more since you're not even seemed to provide some efforts.我无能为力,因为您似乎甚至没有提供一些努力。

Why not sql queries directly?为什么不直接sql查询呢?

This can be done easily using a wizard.这可以使用向导轻松完成。 Set a list of search paramters in wizard and then a "search" function using sql.在向导中设置搜索参数列表,然后使用 sql 设置“搜索”功能。

Hope this idea helps!希望这个想法有帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM