| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 316 |
| Technical Name |
google_sheet_importer |
| License | LGPL-3 |
| Website | https://iniyasoft.com |
| 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.
Steps to Set Up Google Sheets API and Service Account
Step 1: Enable Google Sheets API and Create a Service Account
- Go to the Google Cloud Console.
- Create a new project or select an existing one.
- Navigate to APIs & Services > Library.
- Search for Google Sheets API and click Enable.
- Next, navigate to APIs & Services > Credentials.
- Click on Create Credentials and choose Service Account.
- Enter a name for your service account (e.g., "Odoo Google Sheet Importer") and click Create.
- In the "Grant this service account access" section, choose a role such as Editor and click Continue.
- Click Done after the service account is created.
Step 2: Download the Service Account Credentials
- In the Credentials page, find your service account.
- Click on the service account and go to the Keys tab.
- Click on Add Key > Create New Key.
- Choose JSON as the key type and click Create.
- The credentials `.json` file will be downloaded automatically. Store it securely.
Step 3: Share Your Google Sheets with the Service Account
- Open the Google Sheet that you want to import data from.
- Click the Share button in the top-right corner.
- Share the sheet with the email address in the `.json` file, which will look like:
your-service-account@your-project-id.iam.gserviceaccount.com. - 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
Please log in to comment on this module