Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
71e54ea
[ADD] spreadsheet_oca
etobella Dec 28, 2022
b7e2c1b
[FIX] spreadsheet_oca: Improve security
etobella Feb 12, 2023
9a09b11
[IMP] spreadsheet_oca: Allow to import to existent spreadsheets
etobella Jan 20, 2023
887482a
[IMP] spreadsheet_oca: Allow to export graphs to spreadsheets
etobella Jan 21, 2023
9837726
[IMP] spreadsheet_oca: add to current sheet
etobella Mar 12, 2023
d5841be
[FIX] spreadsheet_oca: Ctrl+Z was not working properly
etobella Apr 5, 2023
2b7ba49
[IMP] spreadhseet_oca: Allow edition of sheet name
etobella Apr 5, 2023
7955b4b
[IMP] spreadsheet_oca: Allow to edit filters
etobella Apr 7, 2023
7ff5113
[FIX] spreadsheet_oca: Filters where failing
etobella Jun 6, 2023
8a8aabe
[IMP] spreadsheet_oca: Alloe to edit Pivot data
etobella Jun 7, 2023
fe20502
[IMP] spreadsheet_oca: Allow to import lists
etobella Jun 10, 2023
4ea3efa
[IMP] spreadsheet_oca: Allow to edit lists
etobella Jun 10, 2023
71d6f3f
[IMP] spreadsheet_oca: Allow to reinsert a pivot table
etobella Jun 11, 2023
b89cecd
[FIX] spreadsheet_oca: Fix filters
etobella Jul 9, 2023
bdf0bd4
[IMP] spreadsheet_oca: Allow to edit Odoo graphs properly
etobella Jul 9, 2023
882eeec
[IMP] spreadsheet_oca: Add roadmap for specific questions
etobella Aug 19, 2023
b4d19b9
[IMP] spreadsheet_oca: Allow to set the menu in all kind of charts. I…
etobella Aug 19, 2023
666c193
Added translation using Weblate (Dutch)
Jan-Onestein Oct 4, 2023
ff0befb
Added translation using Weblate (Italian)
mymage Nov 30, 2023
8a40a9d
[FIX] spreadsheet_oca: Cannot open spreadsheet when using undo / redo
royle-vietnam Feb 22, 2024
ea1ab25
[IMP] spreadsheet_oca : Improve documentation
legalsylvain Mar 8, 2024
21fde35
Added translation using Weblate (French (France) (fr_FR))
legalsylvain Mar 9, 2024
eafb02c
Translated using Weblate (Italian)
rbellanova Apr 23, 2024
a9f738c
[FIX] spreadsheet_oca: error when adding relation filter
daiduongnguyen-odoo May 2, 2024
6e83532
[FIX] spreadsheet_oca: Error when deleting a worksheet
chrisandrewmann May 31, 2024
b5f39d7
[FIX] spreadsheet_oca: Pivot does not imported correctly
CarlosRoca13 Jun 14, 2024
fe9ec4d
[IMP] spreadsheet_oca: Auto resize cols to adjust them to cotent
CarlosRoca13 Jun 19, 2024
d3da44c
Translated using Weblate (Italian)
mymage Jun 24, 2024
e8bd565
[FIX] spreadsheet_oca: Keep pivot order
CarlosRoca13 Jul 8, 2024
d47f5f7
[IMP] spreadsheet*_oca: Add field to define name of table and restruc…
CarlosRoca13 Jul 17, 2024
05457f1
[IMP] spreadsheet_oca: Allow generate dynamic tables
CarlosRoca13 Jul 18, 2024
ed6a412
[IMP] spreadsheet_oca: Allow download spreadsheet as XLSX
CarlosRoca13 Jul 18, 2024
1e9ee5d
[FIX] spreadsheet_oca: Make last changes compatibles with tree and graph
CarlosRoca13 Jul 19, 2024
1eec0c6
Translated using Weblate (Italian)
mymage Jul 29, 2024
a70ba40
Added translation using Weblate (Portuguese)
peterromao Aug 21, 2024
9753dac
[FIX] spreadsheet_oca: correct spelling errors and remove outdated
royle-vietnam Aug 29, 2024
3eac23e
[IMP] spreadsheet_*_oca: Add possibility to make columns dynamic
CarlosRoca13 Sep 3, 2024
22378f2
Translated using Weblate (Italian)
mymage Sep 4, 2024
8132826
[FIX] spreadsheet_oca: Show the "Add" button in invoice list
CarlosRoca13 Sep 16, 2024
1420656
Added translation using Weblate (French)
gregory-moka Sep 17, 2024
64debb6
[FIX] spreadsheet_oca: Avoid to show dynamic cols when no cols selected
CarlosRoca13 Sep 19, 2024
c1aa2a0
Translated using Weblate (Italian)
mymage Sep 23, 2024
4bd8401
[FIX] spreadsheet_oca: Clean searchParams of problematic context keys
CarlosRoca13 Sep 26, 2024
ab8dd8f
Translated using Weblate (Italian)
mymage Oct 7, 2024
3535180
[IMP] spreadsheet_oca: Show data only on debug mode. Otherwise it is …
etobella Oct 25, 2024
dfdc1e1
[IMP] spreadsheet_oca: Allow to import XLSX Files
etobella Oct 26, 2024
891c9a6
Translated using Weblate (Italian)
mymage Nov 4, 2024
398ead2
[IMP] spreadsheet_oca: pre-commit auto fixes
luisDIXMIT Jan 8, 2025
02a4370
[MIG] spreadsheet_oca: Migration to 17.0
luisDIXMIT Jan 8, 2025
478a425
[MIG] spreadsheet_oca: Continue migration
etobella Jan 9, 2025
4ecc911
[IMP] spreadsheet_oca: Add support for changing locale and currencies.
chrisandrewmann Feb 18, 2025
1049d85
[FIX] spreadsheet_oca: Fix when using dynamic number of rows & columns
etobella Feb 23, 2025
d129115
[FIX] Crashes downloading XLSX. Crashes adding chart to sheet.
chrisandrewmann Apr 3, 2025
548336f
[IMP+MIG] Merge PR (https://github.com/OCA/spreadsheet/pull/57) from …
chrisandrewmann Apr 3, 2025
b2c7492
[FIX] Dynamic rows and columns generation crashed, rewrite
chrisandrewmann Apr 3, 2025
8d39df6
[IMP+FIX] Add icons to file menu. Change date range filters to Month-…
chrisandrewmann Apr 3, 2025
f8b4fea
[FIX] Remove coding pragma and add contributor
chrisandrewmann Apr 3, 2025
4ee6631
[IMP] spreadsheet_oca: pre-commit auto fixes
chrisandrewmann Apr 3, 2025
2b049e6
[IMP] Move spreadsheet data fields into spreadsheet_abstract and add …
chrisandrewmann Apr 4, 2025
8659194
Added translation using Weblate (Chinese (Simplified) (zh_CN))
xtanuiha Apr 17, 2025
ecae6f5
Translated using Weblate (Italian)
mymage Jun 21, 2025
2a01f02
[FIX] spreadsheet_oca: getGroupByDisplayLabel error
chrisandrewmann Sep 8, 2025
4662d14
[FIX] spreadsheet_oca: Make use of _zip_xslx_files that spreadsheet m…
CarlosRoca13 Sep 17, 2025
70d5253
[FIX] spreadsheet_oca: Filters don't take care about field type
CarlosRoca13 Sep 18, 2025
2fa9c3d
[IMP] spreadsheet_oca: pre-commit auto fixes
chrisandrewmann Sep 24, 2025
9f4aef3
[MIG] spreadsheet_oca: Migration to 18.0
chrisandrewmann Sep 24, 2025
aa39702
[FIX] spreadsheet_oca: Crash when editing and leaving spreadsheet qui…
chrisandrewmann Oct 10, 2025
d1d5f99
[IMP] spreadsheet*_oca: Remove unnecessary options on spreadsheet ins…
CarlosRoca13 Oct 13, 2025
447edc5
[IMP] spreadsheet_oca: Add "Odoo 18"-like icon
tarteo Oct 15, 2025
db79eff
[IMP] spreadsheet_oca: Change hotkey to add spreadsheet
CarlosRoca13 Oct 16, 2025
da9d39b
Translated using Weblate (Italian)
mymage Oct 20, 2025
125a250
[IMP] spreadsheet_oca:
flotho Nov 21, 2025
4bc15e9
[IMP]ACL: make tag readonly for basic users
flotho Dec 16, 2025
12d22ca
Translated using Weblate (Italian)
mymage Dec 17, 2025
58e7229
[18.0][FIX] spreadsheet_oca: Fixed the fields[col.name] is undefined …
hitesh-erpharbor Jan 9, 2026
9c51b23
[FIX] spreadsheet_oca: fix patch to apply setup correctly
christian-ramos-tecnativa Feb 20, 2026
09d9705
[IMP] spreadsheet_oca: Improve pivot side panel to allow modify Pivot…
CarlosRoca13 Feb 24, 2026
2db61c0
[FIX] spreadsheet_oca: Remove duplicated charts that are throwing err…
CarlosRoca13 Feb 24, 2026
df5043b
Revert "[FIX] spreadsheet_oca: Remove duplicated charts that are thro…
CarlosRoca13 Feb 25, 2026
749b2bc
[FIX] spreadsheet_oca: Use the correct graphs depending on the type o…
CarlosRoca13 Feb 25, 2026
6dd0050
Translated using Weblate (Italian)
mymage Feb 25, 2026
c2973bc
[FIX] spreadsheet_oca: Take care about variables on domain
CarlosRoca13 Mar 2, 2026
fd22cf6
[FIX] spreadsheet_oca: Error linking chart to Odoo menu
CarlosRoca13 Feb 25, 2026
9c02a2a
Translated using Weblate (Italian)
mymage Mar 3, 2026
0a8d883
[FIX] spreadsheet_oca: Error thrown when pivot is sorted
CarlosRoca13 Mar 24, 2026
77579d1
[IMP] spreadsheet_oca: Add new features to relation filters
CarlosRoca13 Mar 26, 2026
41ef4c7
Translated using Weblate (Italian)
mymage Apr 8, 2026
f04709e
Translated using Weblate (Spanish)
alexmorel-tecnativa Apr 10, 2026
c1d7f12
Translated using Weblate (Spanish)
Ed-Spain Apr 13, 2026
2b899d2
Translated using Weblate (Spanish)
alexmorel-tecnativa Apr 16, 2026
90a2433
Translated using Weblate (French)
ypapouin Jun 10, 2026
d0da28e
[IMP] spreadsheet_oca: pre-commit auto fixes
chrisandrewmann Jul 23, 2026
7048ef7
[MIG] spreadsheet_oca: Migration to 19.0
chrisandrewmann Jul 23, 2026
868b28f
[UPD] Update spreadsheet_oca.pot
Jul 27, 2026
12d6a13
[BOT] post-merge updates
OCA-git-bot Jul 27, 2026
e975af1
[FIX] spreadsheet_oca: inherit parent components in SpreadsheetContro…
nericervin Apr 12, 2026
3a12aa6
[BOT] post-merge updates
OCA-git-bot Jul 28, 2026
15eaff6
[FIX] spreadsheet_oca: compute filename per record
chichi0718 Oct 20, 2026
e27c731
[BOT] post-merge updates
OCA-git-bot Oct 21, 2026
1cad031
[FIX] spreadsheet_oca: Allow adding relational field columns and rows
CarlosRoca13 Oct 27, 2026
0d19e52
[UPD] Update spreadsheet_oca.pot
Oct 28, 2026
ff51cba
[BOT] post-merge updates
OCA-git-bot Oct 28, 2026
1b3254c
Update translation files
weblate Oct 28, 2026
832a274
[IMP] spreadsheet_oca: pre-commit auto fixes
JordiBForgeFlow Oct 4, 2026
984c9bf
[MIG] spreadsheet_oca: Migration to 20.0
JordiBForgeFlow Oct 4, 2026
0bcf43b
[IMP] spreadsheet_oca: silent collaborative messages
MiquelRForgeFlow Oct 23, 2026
85bf7b1
[IMP] spreadsheet_oca: dedicated bus notification type
MiquelRForgeFlow Oct 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
171 changes: 171 additions & 0 deletions spreadsheet_oca/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===============
Spreadsheet Oca
===============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e94f0105b63e33017a58b13a48f63e6a50e659aae01c0ec7f57c19d9395e4fe5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fspreadsheet-lightgray.png?logo=github
:target: https://github.com/OCA/spreadsheet/tree/20.0/spreadsheet_oca
:alt: OCA/spreadsheet
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/spreadsheet-20-0/spreadsheet-20-0-spreadsheet_oca
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/spreadsheet&target_branch=20.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds a functionality for adding and editing Spreadsheets
using Odoo CE.

It is an alternative to the proprietary module ``spreadsheet_edition``
of Odoo Enterprise Edition.

**Table of contents**

.. contents::
:local:

Usage
=====

**Create a new spreadsheet**
----------------------------

- Go to 'Spreadsheet' menu
- Click on 'Create'
- Put a name, then click on the "Edit" button

|image1|

- At this point you switch to spreadsheet editing mode. The editor is
named ``o-spreadsheet`` and looks like another common spreadsheet web
editors. (OnlyOffice, Ethercalc, Google Sheets (non-free)).

|image2|

- You can use common functions ``SUM()``, ``AVERAGE()``, etc. in the
cells. For a complete list of functions and their syntax, Refer to the
documentation https://github.com/odoo/o-spreadsheet/ or go to
https://odoo.github.io/o-spreadsheet/ and click on "Insert >
Function".

|image3|

- Note: Business Odoo module can add "business functions". This is
currently the case for the accounting module, which adds the following
features:

- ``ODOO.CREDIT(account_codes, date_range)``: Get the total credit
for the specified account(s) and period.
- ``ODOO.DEBIT(account_codes, date_range)``: Get the total debit
for the specified account(s) and period.
- ``ODOO.BALANCE(account_codes, date_range)``: Get the total
balance for the specified account(s) and period.
- ``ODOO.FISCALYEAR.START(day)``: Returns the starting date of the
fiscal year encompassing the provided date.
- ``ODOO.FISCALYEAR.END(day)``: Returns the ending date of the
fiscal year encompassing the provided date.
- ``ODOO.ACCOUNT.GROUP(type)``: Returns the account ids of a given
group where type should be a value of the ``account_type`` field
of ``account.account`` model. (``income``, ``asset_receivable``,
etc.)

**Edit the columns of a list**
------------------------------

- Open the list side panel (``Data`` menu, then the list name).
- In the ``Columns`` section you can remove or reorder the columns, and
add new ones with the field selector. Relational fields can be
followed to add related values, e.g. ``Company > Name``
(``company_id.name``).
- Click on ``Insert list`` to write the updated columns in the sheet.

**Group a pivot by related fields**
-----------------------------------

- Open the pivot side panel and click on ``Add`` in the ``Columns`` or
``Rows`` section.
- Click on the arrow next to a many2one field to see the fields of the
related model, then pick one, e.g. ``Company > Fiscal Country``.
- Only stored fields can be used, as the grouping is done in the
database.

.. |image1| image:: https://raw.githubusercontent.com/OCA/spreadsheet/20.0/spreadsheet_oca/static/description/spreadsheet_create.png
.. |image2| image:: https://raw.githubusercontent.com/OCA/spreadsheet/20.0/spreadsheet_oca/static/description/spreadsheet_edit.png
.. |image3| image:: https://raw.githubusercontent.com/OCA/spreadsheet/20.0/spreadsheet_oca/static/description/o-spreadsheet.png

Development
===========

If you want to develop custom business functions, you can add others,
based on the file
https://github.com/odoo/odoo/blob/16.0/addons/spreadsheet_account/static/src/accounting_functions.js

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/spreadsheet/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/spreadsheet/issues/new?body=module:%20spreadsheet_oca%0Aversion:%2020.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* CreuBlanca

Contributors
------------

- Enric Tobella
- `Tecnativa <https://www.tecnativa.com>`__:

- Carlos Roca

- `Open User Systems <https://www.openusersystems.com>`__:

- Chris Mann

- `Mind And Go <https://mind-and-go.com>`__

- Florent THOMAS

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/spreadsheet <https://github.com/OCA/spreadsheet/tree/20.0/spreadsheet_oca>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions spreadsheet_oca/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import controllers
from . import models
from . import wizards
55 changes: 55 additions & 0 deletions spreadsheet_oca/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Copyright 2022 CreuBlanca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Spreadsheet Oca",
"summary": "Allow to edit spreadsheets",
"version": "20.0.1.0.0",
"license": "AGPL-3",
"author": "CreuBlanca,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/spreadsheet",
"depends": ["spreadsheet", "base_sparse_field", "bus"],
"data": [
"security/security.xml",
"security/ir.access.csv",
"views/spreadsheet_spreadsheet.xml",
"data/spreadsheet_spreadsheet_import_mode.xml",
"wizards/spreadsheet_select_row_number.xml",
"wizards/spreadsheet_spreadsheet_import.xml",
],
"demo": ["demo/spreadsheet_spreadsheet.xml"],
"assets": {
"web.assets_backend": [
"spreadsheet_oca/static/src/spreadsheet_tree/spreadsheet_tree_view.esm.js",
"spreadsheet_oca/static/src/spreadsheet_tree/spreadsheet_tree_view.xml",
"spreadsheet_oca/static/src/spreadsheet/spreadsheet.scss",
"spreadsheet_oca/static/src/spreadsheet/spreadsheet_action.esm.js",
"spreadsheet_oca/static/src/spreadsheet/list_cog_menu.esm.js",
"spreadsheet_oca/static/src/spreadsheet/list_cog_menu.xml",
"spreadsheet_oca/static/src/spreadsheet/list_controller.esm.js",
],
"web.assets_backend_lazy": [
"spreadsheet_oca/static/src/spreadsheet/pivot_controller.esm.js",
"spreadsheet_oca/static/src/spreadsheet/graph_controller.esm.js",
"spreadsheet_oca/static/src/spreadsheet/pivot_controller.xml",
"spreadsheet_oca/static/src/spreadsheet/graph_controller.xml",
],
"spreadsheet.o_spreadsheet": [
"spreadsheet_oca/static/src/spreadsheet/bundle/spreadsheet.xml",
"spreadsheet_oca/static/src/spreadsheet/bundle/image_file_store.esm.js",
"spreadsheet_oca/static/src/spreadsheet/bundle/filter.esm.js",
"spreadsheet_oca/static/src/spreadsheet/bundle/filter_panel_datasources.esm.js",
"spreadsheet_oca/static/src/spreadsheet/bundle/spreadsheet_renderer.esm.js",
"spreadsheet_oca/static/src/spreadsheet/bundle/spreadsheet_controlpanel.esm.js",
"spreadsheet_oca/static/src/spreadsheet/bundle/spreadsheet_action.esm.js",
"spreadsheet_oca/static/src/spreadsheet/bundle/odoo_panels.esm.js",
"spreadsheet_oca/static/src/spreadsheet/bundle/chart_panels.esm.js",
],
"web.assets_tests": [
"spreadsheet_oca/static/tests/tours/*.esm.js",
],
"web.assets_unit_tests": [
"spreadsheet_oca/static/tests/**/*.test.js",
],
},
}
1 change: 1 addition & 0 deletions spreadsheet_oca/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import main
24 changes: 24 additions & 0 deletions spreadsheet_oca/controllers/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2024 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import json

from odoo.http import Controller, request, route
from odoo.http.stream import content_disposition


class SpreadsheetDownloadXLSX(Controller):
@route("/spreadsheet/xlsx", type="http", auth="user", methods=["POST"])
def download_spreadsheet_xlsx(self, zip_name, files, **kw):
if hasattr(files, "read"):
files = files.read().decode("utf-8")
files = json.loads(files)
file_content = request.env["spreadsheet.mixin"]._zip_xslx_files(files)
return request.make_response(
file_content,
[
("Content-Length", len(file_content)),
("Content-Type", "application/vnd.ms-excel"),
("X-Content-Type-Options", "nosniff"),
("Content-Disposition", content_disposition(zip_name)),
],
)
21 changes: 21 additions & 0 deletions spreadsheet_oca/data/spreadsheet_spreadsheet_import_mode.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record
id="spreadsheet_import_mode_new"
model="spreadsheet.spreadsheet.import.mode"
>
<field name="code">new</field>
<field name="name">Create spreadsheet</field>
<field name="sequence" eval="10" />
<field name="group_ids" eval="[(4, ref('spreadsheet_oca.group_user'))]" />
</record>
<record
id="spreadsheet_import_mode_add"
model="spreadsheet.spreadsheet.import.mode"
>
<field name="code">add</field>
<field name="name">Add to spreadsheet</field>
<field name="sequence" eval="15" />
<field name="group_ids" eval="[(4, ref('spreadsheet_oca.group_user'))]" />
</record>
</odoo>
54 changes: 54 additions & 0 deletions spreadsheet_oca/demo/demo_spreadsheet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"version": 12.5,
"sheets": [
{
"id": "Sheet1",
"name": "Demo Sheet 1",
"colNumber": 26,
"rowNumber": 100,
"rows": {},
"cols": {},
"merges": [],
"cells": {
"A1": {"style": 1, "content": "First Value", "border": 1},
"A2": {"format": 1, "content": "30.55", "border": 1},
"B1": {"style": 1, "content": "Second Value", "border": 1},
"B2": {"format": 1, "content": "50", "border": 1},
"C1": {"style": 1, "content": "Total", "border": 1},
"C2": {"format": 1, "content": "=sum(A2:B2)", "border": 1},
"A3": {"border": 2},
"B3": {"border": 2},
"C3": {"border": 2},
"D1": {"border": 3},
"D2": {"border": 3}
},
"conditionalFormats": [],
"figures": [],
"filterTables": [],
"areGridLinesVisible": true,
"isVisible": true
}
],
"entities": {},
"styles": {"1": {"bold": true, "align": "center"}},
"formats": {"1": "[$$]#,##0.00"},
"borders": {
"1": {
"top": ["thin", "#000"],
"bottom": ["thin", "#000"],
"left": ["thin", "#000"],
"right": ["thin", "#000"]
},
"2": {"top": ["thin", "#000"]},
"3": {"left": ["thin", "#000"]}
},
"revisionId": "START_REVISION",
"uniqueFigureIds": true,
"odooVersion": 5,
"globalFilters": [],
"pivots": {},
"pivotNextId": 1,
"lists": {},
"listNextId": 1,
"chartOdooMenusReferences": {}
}
11 changes: 11 additions & 0 deletions spreadsheet_oca/demo/spreadsheet_spreadsheet.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="demo_spreadsheet" model="spreadsheet.spreadsheet">
<field name="name">Demo spreadsheet</field>
<field
name="spreadsheet_binary_data"
type="bytes"
file="spreadsheet_oca/demo/demo_spreadsheet.json"
/>
</record>
</odoo>
Loading
Loading