-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] spreadsheet_oca : Improve documentation
- Loading branch information
1 parent
fbf111d
commit e0064a5
Showing
11 changed files
with
221 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
<record id="demo_spreadsheet" model="spreadsheet.spreadsheet"> | ||
<field name="name">Demo spreadsheet</field> | ||
<field | ||
name="data" | ||
type="base64" | ||
file="spreadsheet_oca/demo/demo_spreadsheet.json" | ||
/> | ||
|
||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
**Create a new spreadsheet** | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
* Go to 'Spreadsheet' menu | ||
* Click on 'Create' | ||
* Put a name, then click on the "Edit" button | ||
|
||
.. figure:: ../static/description/spreadsheet_create.png | ||
|
||
* 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)). | ||
|
||
.. figure:: ../static/description/spreadsheet_edit.png | ||
|
||
* 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". | ||
|
||
.. figure:: ../static/description/o-spreadsheet.png | ||
|
||
* 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.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.