2ea1d5233c196c54801ae5f69693965d336114a3
Observed Behaviour When opening a pivot view (in any of Odoo module) and trying to import it in a Google Spreadsheet, we get the following error: UncaughtPromiseError > TypeError Uncaught Promise > Cannot read properties of undefined (reading 'id') TypeError: Cannot read properties of undefined (reading 'id') at AddToGoogleSpreadsheet.addToGoogleSpreadsheet (...) at HTMLSpanElement.eval (eval at _compile (...) Expected Behaviour When trying to import the pivot in a spreadsheet, everything should work fine, openning a new tab with a Google spreadsheet. Reproducibility This issue can be reproduced following these steps: 1. Install the 'Google Spreadsheet" module 2. Go to 'Settings' > 'Google Drive' and set your credentials 3. Go to the Sales App 4. Select the pivot view 5. Click on 'Favorites' > 'Add To Google Spreadsheet' Fix Description The original issue was coming from the fact we try to access the ID of a null view, giving us the reported error. Moreover, after fixing this issue, we got another error coming from the fact the config method was called with a domain passed as a list, while it need a string. Both errors were corrected in the way it was already done in https://github.com/odoo/odoo/blob/2e5acb4b15422c1ee38c5630e4fdb929d7a24d3c/addons/google_spreadsheet/static/src/legacy/js/add_to_google_spreadsheet_menu.js#L25 Related Issues/PR opw-2794744 opw-2761065 opw-2752840 closes odoo/odoo#91127 X-original-commit: cd6a2c83a9c9dbc7efcecb69b542a237a30cc8a8 Signed-off-by: Hendrickx Anthony (anhe) <anhe@odoo.com>
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%