Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@
<field name="sequence" eval="20" />
<field name="group_ids" eval="[(4, ref('base.group_system'))]" />
</record>
<record
id="spreadsheet_import_mode_dashboard_sheet"
model="spreadsheet.spreadsheet.import.mode"
>
<field name="code">dashboard_sheet</field>
<field name="name">To dashboard new sheet</field>
<field name="sequence" eval="21" />
<field name="group_ids" eval="[(4, ref('base.group_system'))]" />
</record>
<record
id="spreadsheet_import_mode_dashboard_new_spreadsheet"
model="spreadsheet.spreadsheet.import.mode"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ def _insert_pivot_dashboard_spreadsheet(self):
import_data["new"] = 1
if self.dynamic:
import_data["dyn_number_of_rows"] = self.number_of_rows
if self.dynamic_cols:
import_data["dyn_number_of_cols"] = self.number_of_cols
return {
"type": "ir.actions.client",
"tag": "action_spreadsheet_oca",
Expand All @@ -37,14 +35,11 @@ def _insert_pivot_dashboard_spreadsheet(self):
},
}

def _insert_pivot_dashboard(self, new_sheet=False):
def _insert_pivot_dashboard(self):
import_data = self.import_data
import_data["name"] = self.datasource_name
import_data["new_sheet"] = new_sheet
if self.dynamic:
import_data["dyn_number_of_rows"] = self.number_of_rows
if self.dynamic_cols:
import_data["dyn_number_of_cols"] = self.number_of_cols
return {
"type": "ir.actions.client",
"tag": "action_spreadsheet_oca",
Expand All @@ -54,6 +49,3 @@ def _insert_pivot_dashboard(self, new_sheet=False):
"import_data": import_data,
},
}

def _insert_pivot_dashboard_sheet(self):
return self._insert_pivot_dashboard(True)
55 changes: 1 addition & 54 deletions spreadsheet_oca/README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===============
Spreadsheet Oca
===============
Expand All @@ -17,7 +13,7 @@ Spreadsheet Oca
.. |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
.. |badge2| image:: https://img.shields.io/badge/licence-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
Expand Down Expand Up @@ -88,44 +84,6 @@ Usage
of ``account.account`` model. (``income``, ``asset_receivable``,
etc.)

**Create a new dynamic spreadsheet from pivot**
-----------------------------------------------

- Go to any pivot
- Press on insert button
- Select the dynamic rows or dynamic columns option and set a number of
rows/columns

A new table that will be updated with the actual or filtered values will
be added.

- Note: When a pivot has multiple levels of aggrupations in the rows or
the columns, the number of rows/columns selected will be transfered to
each level.

Example: number of groups -> 2 number of rows -> 3

- val1

- subval1.1
- subval1.2
- subval1.3

- val2

- subval2.1
- subval2.2
- subval2.3

- val3

- subval3.1
- subval3.2
- subval3.3

https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/Hhttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ehttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/rhttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ehttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ihttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/shttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ahttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/vhttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ihttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/shttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/uhttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ahttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/lhttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ehttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/xhttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ahttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/phttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/lhttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ehttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ohttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/fhttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/uhttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/shttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ehttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/:https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/.https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/.https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/fhttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ihttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ghttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/uhttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/rhttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/ehttps://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/:https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/:https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/
https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/../static/description/spreadsheetdynamic_table.gif

.. |image1| image:: https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/static/description/spreadsheet_create.png
.. |image2| image:: https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/static/description/spreadsheet_edit.png
.. |image3| image:: https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/static/description/o-spreadsheet.png
Expand All @@ -137,17 +95,6 @@ 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

Known issues / Roadmap
======================

Adding new lines on pivot tables
--------------------------------

When we add a pivot table, the number of rows is predefined according to
the current data.

In order to add new rows, we need to reinsert the pivot table.

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

Expand Down
2 changes: 0 additions & 2 deletions spreadsheet_oca/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@
"spreadsheet_oca/static/src/spreadsheet/bundle/odoo_panels.esm.js",
"spreadsheet_oca/static/src/spreadsheet/bundle/chart_panels.esm.js",
"spreadsheet_oca/static/src/spreadsheet/bundle/chart_panel.esm.js",
"spreadsheet_oca/static/src/spreadsheet/utils/dynamic_generators.esm.js",
"spreadsheet_oca/static/src/pivot/pivot_table.esm.js",
],
},
}
9 changes: 0 additions & 9 deletions spreadsheet_oca/data/spreadsheet_spreadsheet_import_mode.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,4 @@
<field name="sequence" eval="15" />
<field name="group_ids" eval="[(4, ref('spreadsheet_oca.group_user'))]" />
</record>
<record
id="spreadsheet_import_mode_add_sheet"
model="spreadsheet.spreadsheet.import.mode"
>
<field name="code">add_sheet</field>
<field name="name">Add sheet to spreadsheet</field>
<field name="sequence" eval="16" />
<field name="group_ids" eval="[(4, ref('spreadsheet_oca.group_user'))]" />
</record>
</odoo>
6 changes: 0 additions & 6 deletions spreadsheet_oca/readme/ROADMAP.md

This file was deleted.

32 changes: 0 additions & 32 deletions spreadsheet_oca/readme/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,35 +37,3 @@
> - `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.)

## **Create a new dynamic spreadsheet from pivot**

- Go to any pivot
- Press on insert button
- Select the dynamic rows or dynamic columns option and set a number of
rows/columns

A new table that will be updated with the actual or filtered values will
be added.

- Note: When a pivot has multiple levels of aggrupations in the rows or
the columns, the number of rows/columns selected will be transfered to
each level.

Example: number of groups -\> 2 number of rows -\> 3

- val1
- subval1.1
- subval1.2
- subval1.3
- val2
- subval2.1
- subval2.2
- subval2.3
- val3
- subval3.1
- subval3.2
- subval3.3

Here is a visual exaple of use: .. figure::
../static/description/spreadsheetdynamic_table.gif
Loading