Skip to Content
Menu
v 13.0 Third Party 4
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 321
Technical Name google_sheet_importer
LicenseOPL-1
Websitehttps://www.linkedin.com/in/jothimani-r/
Versions 12.0 13.0 14.0 15.0 16.0 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 321
Technical Name google_sheet_importer
LicenseOPL-1
Websitehttps://www.linkedin.com/in/jothimani-r/
Versions 12.0 13.0 14.0 15.0 16.0 17.0 18.0

Google Sheet Importer

Dynamic models and field mapping with the ability to import multiple Google Sheets into any Odoo model and fields using scheduled actions (cron).

Getting Started

To set up the Google Sheet Importer module, you must enable the Google Sheets API and create a Google Service Account for authentication.

Installation:

Install dependencies before installing this module:

pip install gspread==4.0.1

Steps to Set Up Google Sheets API and Service Account

Step 1: Enable Google Sheets API and Create a Service Account

  1. Go to the Google Cloud Console.
  2. Create a new project or select an existing one.
  3. Navigate to APIs & Services > Library.
  4. Search for Google Sheets API and click Enable.
  5. Next, navigate to APIs & Services > Credentials.
  6. Click on Create Credentials and choose Service Account.
  7. Enter a name for your service account (e.g., "Odoo Google Sheet Importer") and click Create.
  8. In the "Grant this service account access" section, choose a role such as Editor and click Continue.
  9. Click Done after the service account is created.

Step 2: Download the Service Account Credentials

  1. In the Credentials page, find your service account.
  2. Click on the service account and go to the Keys tab.
  3. Click on Add Key > Create New Key.
  4. Choose JSON as the key type and click Create.
  5. The credentials `.json` file will be downloaded automatically. Store it securely.

Step 3: Share Your Google Sheets with the Service Account

  1. Open the Google Sheet that you want to import data from.
  2. Click the Share button in the top-right corner.
  3. Share the sheet with the email address in the `.json` file, which will look like: your-service-account@your-project-id.iam.gserviceaccount.com.
  4. Grant Editor access to the service account.

Screenshots

Screenshot 1: Module Installation

Screenshot 2: Activating Developer Mode

Screenshot 3: Granting Access to the user

Screenshot 4: Open Google Sheet Importer from Home Menu

Screenshot 5: Copy Google Sheet ID from the URL

Screenshot 6: Configure the API credentials and other details such as Target Model, field mappings, schedule

Screenshot 7: Search the related scheduled action

Screenshot 8: Import logs available on Chatter

Screenshot 9: Successful Import

Screenshot 10: New column on Google Sheet

Screenshot 11: Multiple Google Sheets

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.