mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-21 21:12:04 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
from odoo import http
|
||||
|
||||
|
||||
class ResPartner(http.Controller):
|
||||
@http.route("/website-geoengine/tags", type="json", auth="public", cors="*")
|
||||
def tags(self, **kw):
|
||||
tags = kw.get("tags", {})
|
||||
lang = kw.get("lang", "en_US")
|
||||
return http.request.env["res.partner"].get_search_tags(tags, lang)
|
||||
|
||||
@http.route("/website-geoengine/partners", type="json", auth="public", cors="*")
|
||||
def partners(self, **kw):
|
||||
tags = kw.get("tags", {})
|
||||
lang = kw.get("lang", "en_US")
|
||||
maxResults = kw.get("maxResults", "200")
|
||||
return http.request.env["res.partner"].fetch_partner_geoengine(
|
||||
tags, lang, maxResults
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue