Skip to content

Commit b123d41

Browse files
committed
[MIG] spreadsheet_oca: Migration to 18.0
1 parent 1d943ca commit b123d41

22 files changed

+440
-388
lines changed

spreadsheet_oca/README.rst

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Spreadsheet Oca
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fspreadsheet-lightgray.png?logo=github
20-
:target: https://github.com/OCA/spreadsheet/tree/17.0/spreadsheet_oca
20+
:target: https://github.com/OCA/spreadsheet/tree/18.0/spreadsheet_oca
2121
:alt: OCA/spreadsheet
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/spreadsheet-17-0/spreadsheet-17-0-spreadsheet_oca
23+
:target: https://translation.odoo-community.org/projects/spreadsheet-18-0/spreadsheet-18-0-spreadsheet_oca
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/spreadsheet&target_branch=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/spreadsheet&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -45,86 +45,86 @@ Usage
4545
**Create a new spreadsheet**
4646
----------------------------
4747

48-
- Go to 'Spreadsheet' menu
49-
- Click on 'Create'
50-
- Put a name, then click on the "Edit" button
48+
- Go to 'Spreadsheet' menu
49+
- Click on 'Create'
50+
- Put a name, then click on the "Edit" button
5151

5252
|image1|
5353

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

5858
|image2|
5959

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

6666
|image3|
6767

68-
- Note: Business Odoo module can add "business functions". This is
69-
currently the case for the accounting module, which adds the following
70-
features:
71-
72-
- ``ODOO.CREDIT(account_codes, date_range)``: Get the total credit
73-
for the specified account(s) and period.
74-
- ``ODOO.DEBIT(account_codes, date_range)``: Get the total debit
75-
for the specified account(s) and period.
76-
- ``ODOO.BALANCE(account_codes, date_range)``: Get the total
77-
balance for the specified account(s) and period.
78-
- ``ODOO.FISCALYEAR.START(day)``: Returns the starting date of the
79-
fiscal year encompassing the provided date.
80-
- ``ODOO.FISCALYEAR.END(day)``: Returns the ending date of the
81-
fiscal year encompassing the provided date.
82-
- ``ODOO.ACCOUNT.GROUP(type)``: Returns the account ids of a given
83-
group where type should be a value of the ``account_type`` field
84-
of ``account.account`` model. (``income``, ``asset_receivable``,
85-
etc.)
68+
- Note: Business Odoo module can add "business functions". This is
69+
currently the case for the accounting module, which adds the
70+
following features:
71+
72+
- ``ODOO.CREDIT(account_codes, date_range)``: Get the total
73+
credit for the specified account(s) and period.
74+
- ``ODOO.DEBIT(account_codes, date_range)``: Get the total debit
75+
for the specified account(s) and period.
76+
- ``ODOO.BALANCE(account_codes, date_range)``: Get the total
77+
balance for the specified account(s) and period.
78+
- ``ODOO.FISCALYEAR.START(day)``: Returns the starting date of
79+
the fiscal year encompassing the provided date.
80+
- ``ODOO.FISCALYEAR.END(day)``: Returns the ending date of the
81+
fiscal year encompassing the provided date.
82+
- ``ODOO.ACCOUNT.GROUP(type)``: Returns the account ids of a
83+
given group where type should be a value of the
84+
``account_type`` field of ``account.account`` model.
85+
(``income``, ``asset_receivable``, etc.)
8686

8787
**Create a new dynamic spreadsheet from pivot**
8888
-----------------------------------------------
8989

90-
- Go to any pivot
91-
- Press on insert button
92-
- Select the dynamic rows or dynamic columns option and set a number of
93-
rows/columns
90+
- Go to any pivot
91+
- Press on insert button
92+
- Select the dynamic rows or dynamic columns option and set a number of
93+
rows/columns
9494

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

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

102-
Example: number of groups -> 2 number of rows -> 3
102+
Example: number of groups -> 2 number of rows -> 3
103103

104-
- val1
104+
- val1
105105

106-
- subval1.1
107-
- subval1.2
108-
- subval1.3
106+
- subval1.1
107+
- subval1.2
108+
- subval1.3
109109

110-
- val2
110+
- val2
111111

112-
- subval2.1
113-
- subval2.2
114-
- subval2.3
112+
- subval2.1
113+
- subval2.2
114+
- subval2.3
115115

116-
- val3
116+
- val3
117117

118-
- subval3.1
119-
- subval3.2
120-
- subval3.3
118+
- subval3.1
119+
- subval3.2
120+
- subval3.3
121121

122-
https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/Hhttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ehttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/rhttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ehttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ihttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/shttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ahttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/vhttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ihttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/shttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/uhttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ahttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/lhttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ehttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/xhttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ahttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/phttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/lhttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ehttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ohttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/fhttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/uhttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/shttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ehttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/:https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/.https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/.https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/fhttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ihttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ghttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/uhttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/rhttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/ehttps://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/:https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/:https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/
123-
https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/../static/description/spreadsheetdynamic_table.gif
122+
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/
123+
https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/../static/description/spreadsheetdynamic_table.gif
124124

125-
.. |image1| image:: https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/static/description/spreadsheet_create.png
126-
.. |image2| image:: https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/static/description/spreadsheet_edit.png
127-
.. |image3| image:: https://raw.githubusercontent.com/OCA/spreadsheet/17.0/spreadsheet_oca/static/description/o-spreadsheet.png
125+
.. |image1| image:: https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/static/description/spreadsheet_create.png
126+
.. |image2| image:: https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/static/description/spreadsheet_edit.png
127+
.. |image3| image:: https://raw.githubusercontent.com/OCA/spreadsheet/18.0/spreadsheet_oca/static/description/o-spreadsheet.png
128128

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

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

@@ -165,14 +165,14 @@ Authors
165165
Contributors
166166
------------
167167

168-
- Enric Tobella
169-
- `Tecnativa <https://www.tecnativa.com>`__:
168+
- Enric Tobella
169+
- `Tecnativa <https://www.tecnativa.com>`__:
170170

171-
- Carlos Roca
171+
- Carlos Roca
172172

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

175-
- Chris Mann
175+
- Chris Mann
176176

177177
Maintainers
178178
-----------
@@ -187,6 +187,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
187187
mission is to support the collaborative development of Odoo features and
188188
promote its widespread use.
189189

190-
This module is part of the `OCA/spreadsheet <https://github.com/OCA/spreadsheet/tree/17.0/spreadsheet_oca>`_ project on GitHub.
190+
This module is part of the `OCA/spreadsheet <https://github.com/OCA/spreadsheet/tree/18.0/spreadsheet_oca>`_ project on GitHub.
191191

192192
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

spreadsheet_oca/__manifest__.py

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Spreadsheet Oca",
66
"summary": """
77
Allow to edit spreadsheets""",
8-
"version": "17.0.1.0.0",
8+
"version": "18.0.1.0.0",
99
"license": "AGPL-3",
1010
"author": "CreuBlanca,Odoo Community Association (OCA)",
1111
"website": "https://github.com/OCA/spreadsheet",
@@ -21,29 +21,18 @@
2121
"demo": ["demo/spreadsheet_spreadsheet.xml"],
2222
"assets": {
2323
"web.assets_backend": [
24+
"spreadsheet_oca/static/src/spreadsheet/list_controller.esm.js",
25+
"spreadsheet_oca/static/src/spreadsheet/list_controller.xml",
2426
"spreadsheet_oca/static/src/spreadsheet_tree/spreadsheet_tree_view.esm.js",
2527
"spreadsheet_oca/static/src/spreadsheet_tree/spreadsheet_tree_view.xml",
2628
"spreadsheet_oca/static/src/spreadsheet/spreadsheet.scss",
2729
"spreadsheet_oca/static/src/spreadsheet/spreadsheet_action.esm.js",
30+
],
31+
"web.assets_backend_lazy": [
2832
"spreadsheet_oca/static/src/spreadsheet/pivot_controller.esm.js",
2933
"spreadsheet_oca/static/src/spreadsheet/graph_controller.esm.js",
30-
"spreadsheet_oca/static/src/spreadsheet/list_controller.esm.js",
31-
"spreadsheet_oca/static/src/spreadsheet/list_renderer.esm.js",
32-
(
33-
"after",
34-
"web/static/src/views/graph/graph_controller.xml",
35-
"spreadsheet_oca/static/src/spreadsheet/graph_controller.xml",
36-
),
37-
(
38-
"after",
39-
"web/static/src/views/list/list_controller.xml",
40-
"spreadsheet_oca/static/src/spreadsheet/list_controller.xml",
41-
),
42-
(
43-
"after",
44-
"web/static/src/views/pivot/pivot_controller.xml",
45-
"spreadsheet_oca/static/src/spreadsheet/pivot_controller.xml",
46-
),
34+
"spreadsheet_oca/static/src/spreadsheet/pivot_controller.xml",
35+
"spreadsheet_oca/static/src/spreadsheet/graph_controller.xml",
4736
],
4837
"spreadsheet.o_spreadsheet": [
4938
"spreadsheet_oca/static/src/spreadsheet/bundle/spreadsheet.xml",

spreadsheet_oca/migrations/17.0.1.0.0/pre-migrate.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

spreadsheet_oca/models/spreadsheet_abstract.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ def get_spreadsheet_data(self):
7676
self.ensure_one()
7777
mode = "normal"
7878
try:
79-
self.check_access_rights("write")
80-
self.check_access_rule("write")
79+
self.check_access("write")
8180
except AccessError:
8281
mode = "readonly"
8382
return {

0 commit comments

Comments
 (0)