OwnCloud / NextCloud Odoo Integration v.10
The tool to automatically synchronize Odoo attachments with OwnCloud / NextCloud files in both ways
Synchronization is bilateral. All Odoo attachments are put in OwnCloud / NextCloud regularly. OwnCloud / NextCloud files create attachments in Odoo in case they are placed in a correct folder. Look at the sections From Odoo to OwnCloud / NextCloud and From OwnCloud / NextCloud to Odoo
Integration is automatic in both ways. Based on scheduled jobs, Odoo send attachments to OwnCloud / NextCloud and retrieve files from there
Any Odoo document might be synced: customers, opportunities, sale or purchase orders, tasks or issues, employees or users, etc. You decide by your own which records should be in OwnCloud / NextCloud, and which should be left in Odoo
Synchronization equally works for OwnCloud and NextCloud
All synced files are easily accessible though clicking on an attachment. You might also open a whole document folder by clicking on 'Open folder' on the attachment widget
All sync activities might be logged. Control over files and folders creations, moves, name changes and removals. Just turn on the option 'Log sync activities' and access history through the button 'Sync logs'
The tool is compatible with Odoo reporting and mailing apps. If such an app faces a synced file, it retrieves a real content from OwnCloud / NextCloud. In particular, the reports 'always reload' feature and messages & mass mailing attachments work properly
Integration is based on a single user endpoint. It means that a single user login/password of OwnCloud / NextCloud is used. Afterwards for integrations Odoo would use that credentials disregarding an actual Odoo user. Make sure, however, that real Odoo users have an access to OwnCloud / NextCloud to open URLs linked to their attachments
- Prepare and keep updated folders' structure in OwnCloud / NextCloud
- Upload new attachments to a correct folder
Odoo creates a convenient directory structure in OwnCloud / NextCloud: Odoo / Document type name / Document name / Files, where:
- Odoo is a central directory for Odoo Sync in your cloud storage.
- Document type is a synced Odoo model, for example, 'Sale orders', 'Opportunities', 'Customers'
- You select document types by yourself. It might be any document type
- Moreover, you might have a few folders for a single document type. Use Odoo domains to have not global 'Partners, but 'Customers' and 'Suppliers', not just 'Sale orders' but 'Commercial offers', 'To deliver', and 'Done orders'
- With each sync Odoo would try to update document types' folders. Add a new document type at any moment. It will appear in OwnCloud / NextCloud with a next sync
- You are welcome to introduce or change document types folder names at any moment in Odoo. Take into account: renaming in OwnCloud / NextCloud will be recovered to Odoo names
- If you remove a model from integration, it will not be deleted from OwnCloud / NextCloud to keep already synced files safe. However, new documents of this type would not be synced
- In case you removed a directory in OwnCloud / NextCloud, but it is still configured in Odoo, with a next sync a folder structure is going to be recovered (not files, surely).
- Document is an exact object to sync. For instance, 'Agrolait' or 'SO019'
- Documents are synced in case they relate to a synced document type and satisfy its filters. For example, you are not obliged to sync all partners, you may integrate only 'Customers' and 'Vendors' or only 'Companies', not 'Contacts'
- Odoo would generate a folder in OwnCloud / NextCloud for each suitable document even for documents without attachments. It is needed for a backward sync to easily add new files
- OwnCloud / NextCloud folder name equals a real document name. It relies upon Odoo name_get method. Thus, Odoo 'Michael Fletcher' (a contact of 'Agrolait') would be OwnCloud / NextCloud 'Agrolait, Michael Fletcher'
- If an exact document changes its document type (e.g. a quotation is now confirmed), Odoo will automatically relocate its related folder to a proper parent directory (in the example: from 'Commercial offers' to 'To deliver')
- In case a document relates to a few types (for instance, you have 'Vendors' and 'Customers', while Agrolait is both), this document folder would be put into the most prioritized document type. A document type priority is higher as closer to the top in Odoo interfaces it is
- If an Odoo document is removed, the next sync will remove a corresponding OwnCloud / NextCloud directory
- In case you remove a directory in OwnCloud / NextCloud, but it still exists in Odoo, OwnCloud / NextCloud folder structure would be recovered (while files would be unlinked in both Odoo and OwnCloud / NextCloud)
- Folders renaming in OwnCloud / NextCloud will be replaced with Odoo names, Odoo document names are more important
- Files are real files taken from Odoo attachments
The resulted path would be, for example, 'Odoo / Quotations / SO019 / commercial offer.png'.
The only exclusion of the rule are stand alone attachments which do not relate to any Odoo documents (their document type is 'ir.attachment'). Such attachments' path is 'Odoo / Stand Alone Attachments / image.png'.
The direct sync might take quite a long, since a lot of folders should be created. It is not recommended to make sync too frequent: once an hour or two hours is fine.
FilesWith each direct sync, Odoo tries to find not yet synced attachments. If such attachments suit any document type to sync, a file will be uploaded to OwnCloud / NextCloud to a proper folder. In Odoo such attachments will become of 'url' type. It means that a file is not any more kept in Odoo server space, but now it is in OwnCloud / NextCloud. Until sync is done, Odoo attachment remains binary and stores an actual file. Such approach helps Odoo to work faster.
If you unlinked an attachment from Odoo, it would be deleted in OwnCloud / NextCloud as well.
Take into account that file names should be managed in OwnCloud / NextCloud: each backward sync would recover OwnCloud / NextCloud names, Odoo is here less important.
- If a new file is added to a proper document folder (e.g. to 'Odoo / Customers / Agrolait'), the same attachment will be added to Odoo document (in the example - to 'Agrolait')
- In document folders you can put not only files but also child folders. In that case a link for this folder (not its content) is kept in attachments
- In case you rename a file in OwnCloud / NextCloud, it will be renamed in Odoo as well
- Files' removal from OwnCloud / NextCloud leads to related Odoo attachments' removal
- If you move a file to another document folder, in Odoo a related attachment would be re-attached to this new document. Take into account: if you move a file for a not document folder, in Odoo attachment will be deleted as it has been removed from OwnCloud / NextCloud
- If you deleted a document type or document folder, their child files are deleted as well. Thus, Odoo would remove related attachments. The folders, however, will be recovered with a next direct sync. Folders' move to another directory is also considered as a removal. Avoid such situations by following the simple rule: folders are managed mostly by Odoo, files - mostly by OwnCloud / NextCloud.
Backward OwnCloud / NextCloud might take quite much time, since each folder should be checked (the more folders, the more time the backward sync requires). It is recommended to make frequency oftener than once an hour or two hours.
- Do not add folders inside root or document types' folders. If they have the same name as newly synced folders, the latter would not be uploaded
- Make sure your database has a proper SSL certificate required to use OwnCloud API
- Try to avoid the following symbols in folders' and files' names: *, ?, ", ', :, <, >, |, +, %, !, @, \, /,. Direct sync will replace such symbols with '-'. It is done to avoid conflicts with file systems.
Log in
- Enter your cloud storage full url
- Select an OwnCloud / NextCloud, which has full rights to read, create, write and delete files and folders within a root directory
- Enter login and password of this user
- Introduce the title for OwnCloud / NextCloud folder, e.g. Odoo
- Push the button 'Login and Confirm'
- If everything is fine, push the button 'Sync'
- Make sure that the root directory or its children are shared with your colleagues
Enter OwnCloud / NextCloud credentials
Confirmed credentials to start sync
Migration from the versions prior to the version 1.3.0
- Push the button 'Backward sync' (to make sure recent OwnCloud / NextCloud changes are synced)
- Push the button 'Migrate from the version under 3.0'
- Check / update synced models
- Push the button 'Sync' to apply changes
に関するよくある質問 OwnCloud / NextCloud Odoo Integration Odoo v.10
同期ジョブの頻度を変更できますか?
はい、できます。その手順は次のとおりです:
デバッグモードをオンにする
技術設定 > 自動化 > スケジュール済みジョブ に移動します
ジョブ 'Synchronize attachments with cloud' と 'Update attachments from cloud' を探します。
実行頻度を高くしすぎないでください。次のジョブが始まる前に、現在のジョブが終わるのが望ましいです。設定は同期する項目数に応じて変えます。通常、頻度は15分から4時間です。
Odoo 設定ファイルでも十分な時間制限を設定してください。LIMIT_TIME_CPU と LIMIT_TIME_REAL は、予定した cron ジョブ時間以上である必要があります。バージョン 13 以降はパラメータ LIMIT_TIME_REAL_CRON も考慮してください。
Odoo.sh のお客様への重要な注意: cron ジョブの最大時間が 15 分のみに設定されている場合があります。
同期が想定するのではなく、同期ディレクトリの別構造を設定できますか?
いいえ。この機能はバージョン15以降でのみ利用できます。それ以前のバージョンでは、モジュールは事前定義されたフォルダ構造で動作します:
Odoo - 同期の中核フォルダ
Models - 各 Odoo ドキュメントタイプ用のフォルダ。例: 'Projects'、'Partners'。domain で区別すると、より具体的なフォルダがある場合があります。例: 'Customer 1 Projects'、'Projects of the Customer 2'、'Internal Projects' など。
Objects - 各ドキュメント用フォルダ。例: 'Project 1' または 'Customer 1'
この Odoo ドキュメントに関連し、同期されるファイルとフォルダ。
その結果、例えば次のようになります:
Odoo / Projects / Project 1 / project 1 に関連するファイルとフォルダ
Odoo / Customer 1 Projects / Project 1; Odoo / Customer 2 Projects / Project 3, ...
Odoo / Customers / Customer 1 / customer 1 に関連するファイルとフォルダ
この構造は常にフラットです。つまり階層はそのレベルだけです。そのため、異なるドキュメントタイプを同じ構造内に置けないのは正しいです。フォルダ 'Customer 1' 内に、販売オーダ、請求書、プロジェクトのすべてに関連するファイルを置くことはできません。各ドキュメントタイプには独自のフォルダ(または複数)があります。そうでなければ、依拠する基準がなく、逆方向の同期ができません。
Odoo で特定ユーザーのアクセスを設定すべきですか?
いいえ。本ツールは単一ユーザーのエンドポイントに依存します。同期はすべて 1 人のクラウド管理者(アプリ)で行われます。作成したフォルダ / ファイルのアクセス権は自動化されません。クラウドストレージ側で管理してください。
同期フィールドはどこに保存されますか?Odooとクラウドに重複しますか?
本アプリは、添付のバイナリ内容が Odoo サーバーではなく Cloud Client に保管されることを前提とします。そのため、Odoo 上の該当添付は URL タイプになり、添付ボックスまたは Cloud Client からいつでもアクセスできます。
セットアップ後は同期が完全に自動のため、手動操作は不要です。同期する Odoo のドキュメントタイプを決め、それぞれに関連モデルを設定してください(顧客、販売オーダまたは購買オーダ、タスク、プロジェクトなど)。
同じ文書タイプに複数のフォルダを持てますか?例えば社内プロジェクトと顧客プロジェクトです。
はい。それぞれにルールを用意し、その後フィルタを適用します。例: プロジェクトの種類。
文書を確実に割り当てられるよう、フィルタは互いに排他的にしてください。例: 「顧客だが仕入先ではない」「仕入先だが顧客ではない」。そうしないと、特定文書のフォルダがモデル間を行き来します。
Cloud Storage Solutionアプリだけが必要ですか?
いいえ。本ツールは技術コアのみです。ご利用の cloud client 用コネクタも必要です。
同期するオブジェクトが例えば10000件と多くても問題ありませんか?
はい。ただし同期するフォルダ/添付が多いと遅くなることがあります。一方、>10k の取引先と約 5k のプロダクトバリアントを同期した環境でも処理は許容範囲だったとお客様から報告があります。
強調すべき点:
- 同期は、どの項目も失われず同期されるように作られています。速くない場合もあります。FIFO キューと各ジョブのコミットがそれを保証します。
- 対象数は論理的に制限できます。モデル設定で古い項目の同期を制限できます(例: アーカイブ済み取引先や 2 年前のオーダを同期する意味はありません)。
同期をリアルタイムにできますか?
いいえ。リアルタイム同期を避ける確かな理由があります:
パフォーマンスの問題。同期がリアルタイムだと、ファイルアップロードのたびに読み込み画面が出ます。
競合の問題。2 人のユーザーが同時に項目を変更すると、解決できない状況になり得ます。定期ジョブなら後から直せますが、リアルタイムではキューとして保存する必要があり、ユーザーにとってさらに分かりにくくなります。
機能上の問題。特に項目の名前変更と再構成です。逆方向同期ではディレクトリ論理に厳密に依存し、毎回 100% の項目を確認します。更新のたびに行うと毎秒数千リクエストになります。行わなければ変更は失われます。
添付をいくつかのクラウドクライアントと同期できますか
いいえ、この機能はバージョン 15 以降でのみ利用できます。
クラウドでは専用エディタ(OnlyOffice、Office 365 など)を使っています。ファイルはそのエディタで開きますか?
はい、cloud client の設定によります。
コネクタでOwnCloudタグを更新できますか?
いいえ。タグは同期されません。以前この機能を検討しましたが、いくつかの理由で導入しないことにしました:
コネクタライブラリは ownCloud タグの取得や更新をサポートしていません
Odoo の添付には属性「tags」がなく、それらのタグをいつユーザーに割り当てるかも明確ではありません。
アプリは双方向同期のため、同期中に解決が難しい重大な競合が起きる可能性があります。
ツールの更新ポリシーは何ですか?
現行の 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 プロジェクトの対象ブランチを Deploy するか、 設定がそうなっている場合は自動ビルドされるまで待ちます。
自分のサーバーにアプリをインストールするには?
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 サーバーログ、問題の再現手順の完全な説明など。通常、問題の作業計画の作成(不具合が確認された場合)または実施すべき内容の案内(それ以外)には数営業日かかります。
公開の機能リクエストとモジュールのアイデア(無償開発)
ツール改善への意欲は強く、フィードバックには感謝します。要件が広く役立ち、効率よく実装できる場合、チームは To-do リストに加えます。
このような To-do リストは定期的に処理され、追加料金は発生しません。期限や最終デザインは約束できませんが、投資とリスクなしで望む機能を得る良い方法になることがあります。
ご連絡に電話番号やクレジットカードは不要です。30 秒以内の短いメール登録だけです。
社内・社外向けに深く構造化されたナレッジベースを構築するツール。Knowledge System。KMS。Wiki のような改訂。
398€お気に入りの AI チャットから MCP 経由で Odoo を管理するツール。Claude。MCP 対応の任意の AI。
198€Odoo の添付ファイルをフォルダに柔軟に整理し、Google Drive、OneDrive/SharePoint、Nextcloud/ownCloud、Dropbox、Amazon S3、Box、NAS とディレクトリを同期するツール。DMS。ファイルマネージャー。文書管理システム