diff --git a/spreadsheet_oca/README.rst b/spreadsheet_oca/README.rst index 7ff051d7..eae5fe5d 100644 --- a/spreadsheet_oca/README.rst +++ b/spreadsheet_oca/README.rst @@ -88,6 +88,26 @@ Usage 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/19.0/spreadsheet_oca/static/description/spreadsheet_create.png .. |image2| image:: https://raw.githubusercontent.com/OCA/spreadsheet/19.0/spreadsheet_oca/static/description/spreadsheet_edit.png .. |image3| image:: https://raw.githubusercontent.com/OCA/spreadsheet/19.0/spreadsheet_oca/static/description/o-spreadsheet.png diff --git a/spreadsheet_oca/__manifest__.py b/spreadsheet_oca/__manifest__.py index 27a685c7..ac540bd0 100644 --- a/spreadsheet_oca/__manifest__.py +++ b/spreadsheet_oca/__manifest__.py @@ -47,5 +47,8 @@ "spreadsheet_oca/static/src/spreadsheet/bundle/chart_panels.esm.js", "spreadsheet_oca/static/src/spreadsheet/bundle/chart_panel.esm.js", ], + "web.assets_unit_tests": [ + "spreadsheet_oca/static/tests/**/*", + ], }, } diff --git a/spreadsheet_oca/readme/USAGE.md b/spreadsheet_oca/readme/USAGE.md index 935707dc..1a43da2a 100644 --- a/spreadsheet_oca/readme/USAGE.md +++ b/spreadsheet_oca/readme/USAGE.md @@ -37,3 +37,19 @@ > - `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. diff --git a/spreadsheet_oca/static/description/index.html b/spreadsheet_oca/static/description/index.html index cab1e206..cc348cfe 100644 --- a/spreadsheet_oca/static/description/index.html +++ b/spreadsheet_oca/static/description/index.html @@ -3,7 +3,7 @@ -Spreadsheet Oca +README.rst