Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ir_attachment_google_drive #789

Open
wants to merge 10 commits into
base: misc-addons-11.0-ir_attachment_google_drive
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .DINAR/build-date.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
March 11, 2020 -- 19:31
2 changes: 2 additions & 0 deletions .DINAR/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ addons:

server_wide_modules:
- web
- ir_attachment_url
- ir_config_parameter_multi_company
18 changes: 13 additions & 5 deletions .github/workflows/DINAR-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ jobs:
- name: Configure docker
run: |
bash DINAR/workflow-files/configure-docker.sh ${{ secrets.DINAR_TOKEN || secrets.GITHUB_TOKEN }}
echo "::set-env name=PR_FILES::../../REPO"
- name: Install python tools
run: |
pip install plumbum PyGithub pyyaml
Expand All @@ -158,6 +159,7 @@ jobs:
ODOO_BASE_MODULES=$(docker inspect \
--format '{{ index .Config.Labels "dinar.odoo.modules"}}' \
dinar_odoo_1)
echo "ODOO_BASE_MODULES=$ODOO_BASE_MODULES"

# sets environment variables that available in next steps via $ {{ env.PR_... }} notation
cd REPO
Expand All @@ -178,14 +180,18 @@ jobs:
run: |
# TODO https://github.com/itpp-labs/DINAR/issues/42
exit 1
- name: Prepare Artifact Folder
run: |
mkdir new-deps/
# create dummy file to be sure that Artifact will be uploaded
echo ok > new-deps/.empty
- name: Prepare DINAR with additional dependencies
if: env.PR_MODULES_DEPS != '' || env.PR_DEPS != ''
run: |
# Save artifacts for local run and for integrations Tests
bash DINAR/workflow-files/save-docker-layers.sh new-deps/
echo $MODULES > new-deps/modules.txt
echo "${{ env.PR_MODULES_DEPS }}" > new-deps/modules.txt
- name: Save DINAR with dependencies
if: env.PR_MODULES_DEPS != '' || env.PR_DEPS != ''
uses: actions/upload-artifact@v1
with:
name: new-deps
Expand Down Expand Up @@ -227,12 +233,14 @@ jobs:
name: new-deps
path: new-deps/
- name: Check artifact
if: failure()
run: |
echo "::set-env name=ARTIFACT::failure"
if [ ! -f new-deps/modules.txt ]; then
echo "::set-env name=ARTIFACT::empty"
fi
- name: Configure Docker
run: |
bash DINAR/workflow-files/configure-docker.sh ${{ secrets.DINAR_TOKEN || secrets.GITHUB_TOKEN }}
echo "::set-env name=PR_FILES::../../REPO"
- name: Analyze PR
run: |
# sets environment variables that available in next steps via $ {{ env.PR_... }} notation
Expand All @@ -245,7 +253,7 @@ jobs:
docker-compose -p DINAR -f DINAR/workflow-files/docker-compose-DINAR-pr.yml pull
docker-compose -p DINAR -f DINAR/workflow-files/docker-compose-DINAR-pr.yml up --no-start
- name: Apply new-deps artifact
if: env.ARTIFACT != 'failure'
if: env.ARTIFACT != 'empty'
run: |
bash DINAR/workflow-files/load-docker-layers.sh new-deps/

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/DINAR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ jobs:
password: ${{ env.REGISTRY_PASSWORD }}
buildargs: ODOO_VERSION,AGGREGATE,PIP_INSTALL_ODOO,CLEAN,COMPILE,LOCAL_CUSTOM_DIR
workdir: REPO/.DINAR/
cache: ${{ github.event_name != 'schedule' }}
- name: Install python tools
run: |
pip install plumbum pyyaml
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/repo2store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ on:
jobs:
repo2store:
runs-on: ubuntu-latest
if: "! endsWith(github.repository, '-store')"
if:
"! endsWith(github.repository, '-store') && startsWith(github.repository,
'itpp-labs/')"
steps:
- name: Checkout REPO
uses: actions/checkout@v2-beta
Expand Down
2 changes: 1 addition & 1 deletion hr_public_holidays_ics_import/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"vesion": "11.0.1.0.0",
"author": "IT-Projects LLC, Ildar Nasyrov",
"website": "https://it-projects.info",
"license": "AGPL-3",
"license": "Other OSI approved licence", # MIT
"price": 9.00,
"currency": "EUR",
"depends": ["hr_public_holidays"],
Expand Down
2 changes: 1 addition & 1 deletion ir_attachment_force_storage/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Force move attachments to DB storage",
"version": "11.0.1.0.0",
"author": "IT-Projects LLC, Ivan Yelizariev",
"license": "AGPL-3",
"license": "Other OSI approved licence", # MIT
"category": "Tools",
"website": "https://yelizariev.github.io",
"depends": ["attachment_large_object"],
Expand Down
51 changes: 51 additions & 0 deletions ir_attachment_google_drive/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
:target: https://opensource.org/licenses/MIT
:alt: License: MIT

=================================
Google Drive Attachment Storage
=================================

TODO description intro

TODO detailed description

Credits
=======

Contributors
------------
* `Eugene Molotov <https://it-projects.info/team/em230418>`__:

* :one::zero: init version of the module

Sponsors
--------
* `IT-Projects LLC <https://it-projects.info>`__

Maintainers
-----------
* `IT-Projects LLC <https://it-projects.info>`__

To get a guaranteed support
you are kindly requested to purchase the module
at `odoo apps store <https://apps.odoo.com/apps/modules/11.0/ir_attachment_google_drive/>`__.

Thank you for understanding!

`IT-Projects Team <https://www.it-projects.info/team>`__

Further information
===================

Demo: http://runbot.it-projects.info/demo/misc-addons/11.0

HTML Description: https://apps.odoo.com/apps/modules/11.0/ir_attachment_google_drive/

Usage instructions: `<doc/index.rst>`_

Changelog: `<doc/changelog.rst>`_

Notifications on updates: `via Atom <https://github.com/it-projects-llc/misc-addons/commits/11.0/ir_attachment_google_drive.atom>`_, `by Email <https://blogtrottr.com/?subscribe=https://github.com/it-projects-llc/misc-addons/commits/11.0/ir_attachment_google_drive.atom>`_

Tested on Odoo 11.0 a827d3015c6994bc3c779f9ba5cd270d8bdd8edd
3 changes: 3 additions & 0 deletions ir_attachment_google_drive/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License MIT (https://opensource.org/licenses/MIT).

from . import models
39 changes: 39 additions & 0 deletions ir_attachment_google_drive/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright 2020 Eugene Molotov <https://it-projects.info/team/em230418>
# License MIT (https://opensource.org/licenses/MIT).

{
"name": """Google Drive Attachment Storage""",
"summary": """TODO description intro""",
"category": "Extra Tools",
# "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version=12.0",
"images": [],
"version": "11.0.1.0.0",
"application": False,
"author": "IT-Projects LLC, Eugene Molotov",
"support": "apps@it-projects.info",
"website": "https://apps.odoo.com/apps/modules/11.0/ir_attachment_google_drive/",
"license": "Other OSI approved licence", # MIT
# "price": 9.00,
# "currency": "EUR",
"depends": ["base", "google_drive"],
"external_dependencies": {"python": [], "bin": []},
"data": ["views/res_config_settings_views.xml"],
"demo": [],
"qweb": [],
"post_load": None,
"pre_init_hook": None,
"post_init_hook": None,
"uninstall_hook": None,
"auto_install": False,
"installable": True,
# "demo_title": "Google Drive Attachment Storage",
# "demo_addons": [
# ],
# "demo_addons_hidden": [
# ],
# "demo_url": "DEMO-URL",
# "demo_summary": "TODO description intro",
# "demo_images": [
# "images/MAIN_IMAGE",
# ]
}
4 changes: 4 additions & 0 deletions ir_attachment_google_drive/doc/changelog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
`1.0.0`
-------

- **Init version**

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍

35 changes: 35 additions & 0 deletions ir_attachment_google_drive/doc/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
=================================
Google Drive Attachment Storage
=================================

Installation
============
{Instruction about things to do before actual installation}

* {OPTIONAL }`Activate longpolling <https://odoo-development.readthedocs.io/en/latest/admin/longpolling.html>`__
* {Additional notes if any}
* `Install <https://odoo-development.readthedocs.io/en/latest/odoo/usage/install-module.html>`__ this module in a usual way

Configuration
=============

{Instruction how to configure the module before start to use it}

* `Log in as SUPERUSER <https://odoo-development.readthedocs.io/en/latest/odoo/usage/login-as-superuser.html>`__
* `Activate Developer Mode <https://odoo-development.readthedocs.io/en/latest/odoo/usage/debug-mode.html>`__
* Open menu ``[[ {Menu} ]] >> {Submenu} >> {Subsubmenu}``
* Click ``[{Button Name}]``

Usage
=====

{Instruction for daily usage. It should describe how to check that module works. What shall user do and what would user get.}

* Open menu ``[[ {Menu} ]]>> {Submenu} >> {Subsubmenu}``
* Click ``[{Button Name}]``
* RESULT: {what user gets, how the modules changes default behaviour}

Uninstallation
==============

{Optional section for uninstallation notes. Delete it if you don't have notes for uninstallation.}
4 changes: 4 additions & 0 deletions ir_attachment_google_drive/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)

from . import ir_attachment
from . import res_config_settings
Loading