[ADD] spreadsheet_oca & spreadsheet_dashboard_oca#2
Conversation
c968cde to
e68ac1c
Compare
There was a problem hiding this comment.
Well.
First, thanks a lot @etobella for this nice OCA christmas gift !
just tested very quickly on runboat :
- going in spreadsheet spreadsheet, the "create" button doesn't work. Do you face the same issue ?
- when I go in Dashboard > configuration > Sale (for exemple) > and I edit the sale dashboard :
-> The editor is well opened : OK
-> When I edit in multi browser with demo and admin, I don't see direct changes : KO. Edit : did'nt see your roadmap point.
-> when I try to save the changes (I click on save), It doesn't work : KO
|
Saving on dashboards now works. About the create, I forgot about it. At the begining I tried to do it with a Form JS Class, but at the end I had to find another way. I need to modify tree view. I will do ASAP 😉 |
|
Thanks for your answer ! Please ping me when you want review. |
|
Tree modified. Creation is allowed properly 🎉 |
4dc53b3 to
488d9e3
Compare
|
Just one thing. Should we use Next step would be to improve views on DMS. But it might be achieved 😄 |
|
Yeah, I was thinking in a |
legalsylvain
left a comment
There was a problem hiding this comment.
Hi @etobella. Thanks for your work ! Saving works now.
remarks :
- Nice to fix : minor remarks inline, regarding the name of "spreadsheets" menu.
- Question : I don't find a way to add a new spreadsheet to a spreadsheet group. Is it possible ? forecast ?
- UI remarks : I see the current UI in spreadsheet spreadsheet list very limited. It is only possible to create and edit via
[o-spreadsheet](https://github.com/odoo/o-spreadsheet)the spreadsheet. but it's not possible to open the form. As a result, if OCA or custom module want to add some field, it will not be possible to edit them. Why not having a classic "tree" and "form" views here, with a simple button "Open" or "Edit" when we want to edit the content ?
thanks !
|
Just a few things:
Multi edit video 😄 2023-01-01.19-27-30.mp4 |
The last instance on runboat have the same "spreadsheet spreasheet" title.
I mean : Go to "Dashboard" > "Configuration" > Click on a group (like "Sale") and here, have the possibility to "Add a line". Does it makes sense ?
As you wish. I guess, that having a "classic" tree / form view structure and just add a button "Open" in the tree view (and in the form view) could be the more simple to implement and the UI the most "awaited". (I mean, all the rest of odoo works the same, when you click on a line of a tree view, the form view is opened).
I guess you should implement Side questions :
|
After a second thought, I think you are right. Changes applied 😄
I passed the logic to an abstract in order to avoid the same error on the future 😉
🤔 Maybe we need to make it required |
|
Thanks for all the changes. Nice refactoring with the abstract btw ! |
chienandalu
left a comment
There was a problem hiding this comment.
Awesome work @etobella ! Thanks!
Some features that won't be hard to implement in a near future:
- Link lists, and pivots to new or existing spreadsheets. Checking in the tests the expected json it won't take too much to create a client.action that prepares the proper format (ref: https://github.com/OCA/OCB/blob/16.0/addons/spreadsheet/static/tests/global_filters/global_filters_model_test.js#L942-L953)
- Exporting to be able to download the json and use it elsewhere.
- Importing a json to retrieve exported spreadsheets.
- A module linking spreadsheets and dashboards to use the data from the former ones as the dashboard source.
|
We can now export from Pivot Tables 🎉 2023-01-02.21-35-45.mp4 |
|
Bravo! |
pedrobaeza
left a comment
There was a problem hiding this comment.
Thank you very much for this.
Several things to finish the modules:
- The dashboard edition doesn't work:
-
On this matter, I prefer that the dashboards with XML-ID can't be overwritten, and only allows to save a copy.
-
I also misses the possibility to save a spreadsheet as a dashboard.
-
About security, I would create 2 groups:
Spreadsheets / User
Spreadsheets / Manager
You may want that your users don't access spreadsheets at all, so not putting any of them, the main menu is not shown, as well as the button on the pivot views. If you put user, then you will be able to see those spreadsheets that you are owner, contributor or reader, and edit the first 2. Being manager, you see and edit all.
-
From the pivot view, is there any possibility of adding it to an existing spreadsheet? It would be a very nice feature.
-
Spreadsheets can be saved with no name, so please put it as required.
Maybe it's better to split the pull request in 2 parts and let this one for the base module and handle the dashboard thing in another.
Thanks again.
|
Hi @pedrobaeza Your inline comments have been attended About your main comment 😄
True, should be fixed now.
Well, I understand your concern, but I am not sure if it is the right approach 🤔 Also, the system checks who can edit it, and it is only editable by the right users, so only administrator users are allowed to edit spreadsheet dashboards.
The idea is to create it directly there on the dashboard configuration.
It makes sense, I will do it ASAP
It is already done 😄
Yes, ASAP 😉
I will close this one when it is ready in order to keep the history in this PR. then I will create two new ones with only one commit Also, thanks for the icon, it is already here 😄 |
|
OK, tested. The Edit button still appears when you don't have any Spreadsheet group, but then it appears an error when you click it. Maybe it's better to hide such button. About having that edit button on standard dashboards, it seems it's still usable for spreadsheet / user. You can now proceed to clean the commit history and let only the main module here. |
|
Done! |


This PR contains two modules:
TODO:
2022-12-30.20-00-19.mp4
@pedrobaeza