URL shortening is a well-known methodology to cope with too long and ugly looking web addresses. The app introduces this technique in Odoo by allowing website editors to manually or automatically generate, control, and administrate short URLs for any Odoo web links.
Branded links
Introduce memorable and human-readable URLs of the type '/s/[token]' for any Odoo website address. What is preferable to share: example.com/s/desk or example.com/shop/customizable-desk-config-9#attr=7,4,47?
Automatic or custom URLs
Configure the rules for automatic creation of short URLs based on iterator and token (for example, /s/12 and /s/rh72ko) or apply own key words (for example, /s/desk, /s/best-chairs).
Multi channels control
Have as many short links for a single address as it needed for various purposes. Share one in Facebook, another - in Twitter, and a special one - for specific partners. Then, count redirects for each source.
Comfortable administration
Use URL shortener right while customizing website or in Odoo advanced backend. Make a link soon expired or forever-lasting. Update token at any moment or archive a link if it is not any more valid.
Website snippet
The app introduces especial website snippet which might be added to any Odoo website inner content. Such snippet would find or create a short URL right when a visitor opens a page.
Available for scripts and custom add-ons
Developers might use the app to find or create a short URL for a target website address by applying a single Python method.
URL shortener administration
Website interface for short URLs
-
To start managing short links click on Customize > Short URLs from any page
-
The app would automatically retrieve a target web address with all search and hash parameters from a browser. Change this redirect URL if needed: available short links would be recalculated
-
Create new short links based on default token or custom key words. Archive obsolete URLs
-
Update existing addresses: change token, assign expiration date, apply to this website or to all sites (the app fully supports Odoo multi website mode)
-
Copy a short URL to clipboard in a single click.
Advanced backend links' editor
-
Find all short links by all websites under the menu Websites > Settings > Short URLs
-
Group by website or target URL (there might be multiple short links for each). Archive or restore links in batch
-
Create a new short URL in a few seconds: the only thing required is to introduce a target web address
-
Apply flexible settings: validity date to make a link auto expired, notes to always know why this URL has been introduced, website to restrict usage for a specific site or to use a link globally.
Automatic short URLs generation
-
It is not always possible to prepare a branded URL for each address. For example, when you have thousands of website pages. For such cases define a default automatic method
-
Use 'iterator' to generate a link with succeeding number at the end. For instance, 'example.com/s/112'. The app would automatically increment a number when a new short URL is registered
-
Use 'token' approach to generate a unique symbols' row of a predefined length (it should not be less than 5 symbols to have enough unique combinations). For instance, 'example.com/s/uo71jh'
-
A default short URL would be entered as soon as you decide to create a new redirection. Simultaneously, you can always change that to a custom sentence or create a new alternative short URL. Do that for the most important addresses, addresses you would like to print on your business cards, addresses which are assumed to entered manually, etc.
Short URLs for developers
Using short URLs in scripts
-
While developing a custom add-on, script, or server action you might be interested to have a short URL for certain website addresses. The tool let do that efficiently
-
To that end you should trigger the method 'action_find_surl' of the model 'short.url.redirect'
-
As arguments it should receive:
target_url- string - full path of web address. E.g. "/shop/customizable-desk-config-9#attr=7,4,47)"tocreate- boolean - whether to create a new short URL if none exists for target URLalwaysvalid- boolean - whether to search short URLs without expiration or yet valid but soon expired links are also finewebsite_id-integer - if False the app would search only global URLs, otherwise also of a specific website (applicable for mutli website mode) -
The method would return a string - a found short URL (e.g. '/s/desk') - or False if nothing is found.
-
For instance:
my_short_url = self.env["short.url.redirect"],action_find_surl("/shop/customizable-desk-config-9#attr=7,4,47", True, True, 1)
Website Snippet for auto short links
-
The website menu 'Customize' and the backend menu 'Short URLs' are available only for Odoo website designers. For certain pages you might be interested to show a short link for simple visitors as well
-
To that end you might drag and drop the special website editor snippet 'Short URLs'. Alternatively add an xml line the tag
awith the href"#"and the class"short_url_widget" -
Each time a page with such snippet is opened, a short URL would be searched and - if not found - created. In such a way, you may show a visitor a valid short URL, which he/she might copy and share
-
Take into account: the snippet searches only for always valid global short URLs.
相关常见问题 Website URL shortener Odoo v.13
您的工具的更新政策是什么?
根据当前 Odoo Apps Store 政策:
- 为 12.0 及更早版本购买的每个模块,均可使用直至 12.0 的所有版本。
- 从 13.0 起,每个模块版本需单独购买。
- 无论版本如何,购买工具即获得该主版本内的 全部更新和缺陷修复权利。
请注意,faOtools 团队不控制这些政策。如有疑问,请直接联系 Odoo Apps Store 代表。
如何在 Odoo.sh 上安装您的应用?
最直接的做法是使用 Odoo 商店的内置流程:
1. 打开模块页面并点击 Deploy on odoo.sh 按钮
2. 之后会跳转到 GitHub 页面。登录帐户,然后点击 'Create a new repo' 或使用现有仓库。请确保仓库为私有。不得以 OPL-1 许可公开发布应用。如有需要,为 Odoo.sh 项目新建 repo
3. 然后转到 odoo.sh 并点击 Deploy 按钮。在弹出窗口中提交决定并点击 'Continue.' 这将触发安装过程。
这些步骤会将应用安装到项目的生产分支。若要部署到其他分支或更新模块,请执行以下操作:
1. 从 Odoo 商店上传应用的源代码
2. 将模块提交到所需的 GitHub 仓库。确保没有任何应用文件夹/文件被忽略(即未列入 repo 的 .gitignore)。仓库由 odoo.sh 自动创建,默认可能包含关键项(例如 /lib)。应上传模块的全部目录、子目录和文件,不得遗漏
3. 部署 odoo.sh 项目的目标分支,或在设置如此假定时 等待其自动构建。
应如何在自己的服务器上安装您的应用?
2. 重新启动 Odoo 服务器;
3. 打开开发者模式(技术设置);
4. 更新应用列表(应用菜单);
5. 找到应用并点击“Activate”/“Install”;
6. 如应用页面有指南,请按指南操作。
我注意到您的应用有额外附加模块。可以之后再购买吗?
可以。同时 Odoo 会自动把所有依赖加入购物车,因此应排除已购买的工具以免重复付款。
我在 Odoo.sh 上部署了您的应用,测试中出现警告/错误
红/橙色警告不影响应用功能。遗憾的是,标准自动测试有时假定与本应用目标冲突的行为,因此我们的模块会未通过。例如我们改了价格计算,而标准 Odoo 模块测试把最终价格与标准算法比较。
请先检查已部署数据库的功能。是否都正常?
若仍认为该警告影响真实功能,请联系我们并转发完整安装日志以及已部署模块的完整清单(含核心与第三方)。
我可以直接向贵公司购买应用吗?
不,我们只通过 官方 Odoo 应用商店.
希望获得折扣
很遗憾,我们没有技术手段 提供单独报价。
我可以在 Odoo Online (SaaS) 数据库上安装该应用吗?
不能,第三方应用无法在 Odoo Online 上使用。遗憾的是 Odoo SaaS 会阻止这种可能。
您的工具依赖其他应用。我需要购买那些应用吗?
是的,工具需要依赖中列出的全部模块才能正常工作。应用页上的价格已包含所有必要依赖。
该模块的美元价格是多少?为什么变了?
我们的模块价格以欧元标价。Odoo 商店按内部汇率换成其他货币。因此美元价格可能随汇率更新而变化。
非英语的应用和网站措辞由 AI 辅助 并与官方 Odoo 翻译对齐。若发现错误, 发送翻译正确性工单 我们会修好。
缺陷反馈
如遇缺陷或不一致行为,请随时联系我们。我们保证在购买后 60 天内提供修复,并在此期限后仍积极改进工具。
联系我们无需电话号码或信用卡。只需完成不超过 30 秒的简短电子邮件注册。
请在请求中尽可能提供详细信息:截图、Odoo 服务器日志、完整的问题复现说明等。通常需要几个工作日来准备问题的工作计划(若确认是缺陷)或提供应采取的指引(否则)。
公开功能请求与模块构想(免费开发)
我们非常希望改进工具,并感谢任何反馈。若您的需求具有普遍价值且能高效实现,团队会将其列入待办清单。
此类待办清单会定期处理,不产生额外费用。虽然我们无法承诺截止日期和最终设计,但这可能是在无投入、无风险的情况下获得所需功能的好办法。
联系我们无需电话号码或信用卡。只需完成不超过 30 秒的简短电子邮件注册。
用于将 Odoo 附件灵活归入文件夹并将目录与云客户端同步的工具:Google Drive、OneDrive/SharePoint、Nextcloud/ownCloud、Dropbox、Amazon S3、Box 和 NAS。DMS。文件管理器。文档管理系统
通过 MCP 从常用 AI 聊天管理 Odoo 的工具。Claude。任何支持 MCP 的 AI。
198€