Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Lines of code | 321 |
Technical Name |
google_sheet_importer |
License | OPL-1 |
Website | https://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
- 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
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