Commit Graph
25 Commits
Author SHA1 Message Date
stefanorigano (SRI) b633a95bb6 [IMP] web, web_editor, website, spreadsheet: use system fonts
Use system fonts for backend and web-editor's UI.
This commit removes references to proprietary fonts and allows the OS
to use the system ones. The aim is to reduce http request and the
general footprint (see enterprise counter-part).

The new font-stack:

- apple-system (San Francisco): iOS Safari, macOS Safari, macOS Firefox
- BlinkMacSystemFont (San Francisco): macOS Chrome
- Segoe UI: Windows
- Roboto: Android, Chrome OS
- Helvetica Neue: old OSX versions
- Ubuntu: Ubuntu
- Liberation Sans: Linux (others)
- Arial: Any
- sans-serif: General fallback

This was actually already introduced for the website default theme and
as a general option with [1] but it was not complete: if reaching the
need to use Roboto of the font stack, the repo Roboto was used instead
of the potential system one. It was not shown during testing with the
previous font stack. With the new one, on Ubuntu, it was revealed as
the Ubuntu font comes after Roboto.

[1]: https://github.com/odoo/odoo/commit/c0f2f670eb087991cc9a6a67f4beea5f12bd15f2

task-2995248

closes odoo/odoo#101533

X-original-commit: 9f8f8f2ef88aee746819469c918b2d31ec29d031
Related: odoo/enterprise#31985
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2022-09-29 11:13:10 +02:00
Lucas Lefèvre a3c69f2592 [IMP] spreadsheet: update o_spreadsheet to latest version
### Contains the following commits:

https://github.com/odoo/o-spreadsheet/commit/758a22f6 [FIX] chart: allow plugins to react to chart duplication
https://github.com/odoo/o-spreadsheet/commit/d8116451 [IMP] line charts: Introducing stacked line charts
https://github.com/odoo/o-spreadsheet/commit/8a428d31 [IMP] spreadsheet: Introducing Frozen panes
https://github.com/odoo/o-spreadsheet/commit/804a8a34 [IMP] notification: Add new notification type
https://github.com/odoo/o-spreadsheet/commit/733d8ecf [REV] composer: bad cursor placement on focus
https://github.com/odoo/o-spreadsheet/commit/6423a245 [FIX] collaborative: do not transform commands in other dimension

closes odoo/odoo#101396

Related: odoo/enterprise#31915
Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2022-09-28 21:26:22 +02:00
Pierre Rousseau 24a38f2054 [FIX] spreadsheet: translate spreadsheet content
This commit dynamically translate some content in the spreadsheet.
Static translated terms are extracted from the spreadsheet data.

One might think we could translate the spreadsheet upfront, server side,
by translating the data before sending it to the client but it could lead to
unexpected behaviors though:
Let's say a chart has a translated title, if you copy-paste it from one sheet
to another, you still want the title to be translated/translatable.

In other words: manipulating things in the spreadsheet should be done on
the raw, untranslated, data.

X-original-commit: 53dc147504bfc3ddabef61a2bae8610f526bf6ac
Part-of: odoo/odoo#101120
2022-09-26 14:43:21 +02:00
Adrien Minne (adrm) 0152529bb9 [FIX] spreadsheet: traceback on copy Odoo Chart
Copying an odoo chart gave a traceback since the method `copyInSheetId` wasn't implemented in Odoo Charts.

Odoo task 2987656

closes odoo/odoo#100748

X-original-commit: c26b8ee12857253c90b62b14c0a86c60457af4c2
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
Signed-off-by: Minne Adrien (adrm) <adrm@odoo.com>
2022-09-26 09:35:51 +02:00
Pierre Rousseau 4bfaf9291e [IMP] spreadsheet: update o_spreadsheet to latest version
### Contains the following commits:

https://github.com/odoo/o-spreadsheet/commit/739db5a3 [IMP] link: translate label
https://github.com/odoo/o-spreadsheet/commit/b29eeea3 [IMP] function: allow function name with underscore
https://github.com/odoo/o-spreadsheet/commit/33411f3e [IMP] chart: translate title and baselineDescr
https://github.com/odoo/o-spreadsheet/commit/9c22f40a [FIX] selection: do not reset selection on sheet deletion
https://github.com/odoo/o-spreadsheet/commit/d891ac1c [FIX] Selection: do not set current sheet selection to other sheets

closes odoo/odoo#100844

Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
2022-09-23 05:02:26 +02:00
Lucas Lefèvre 4c9de9b786 [IMP] spreadsheet: update o_spreadsheet to latest version
https://github.com/odoo/o-spreadsheet/commit/dbe36052 [FIX] find_and_replace: select first match automatically
https://github.com/odoo/o-spreadsheet/commit/28476c9d [FIX] ClearFormat: clear format actually clears the format
https://github.com/odoo/o-spreadsheet/commit/b4dbb747 [FIX] grid: handle selectionInput modes on click events
https://github.com/odoo/o-spreadsheet/commit/179ff66d [IMP] functions: make ISTEXT/ISNUMBER/... compatible with Excel/GSheet
https://github.com/odoo/o-spreadsheet/commit/ce32cd66 [FIX] scorecard: display percentage between 0 and 0
https://github.com/odoo/o-spreadsheet/commit/44266c5b [IMP] style: add text cell wrapping option
https://github.com/odoo/o-spreadsheet/commit/9b08e99a [REF] renderer: extract font size computation
https://github.com/odoo/o-spreadsheet/commit/ebff300d [IMP] clipboard: paste on merge consistency
https://github.com/odoo/o-spreadsheet/commit/246de550 [IMP] evaluation: add error "unknown function"

closes odoo/odoo#100740

Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2022-09-22 09:49:51 +02:00
Adrien Minne 4b06783080 [IMP] spreadsheet: dashboard filters finetuning
Improve the CSS of the global filters in dashboards

Odoo task 2988046

closes odoo/odoo#100749

X-original-commit: 629c36f9763669e500c2664ad44037d915c29b10
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
2022-09-21 22:45:46 +02:00
Lucas Lefèvre 5ec97eb5a2 [FIX] spreadsheet: remove filter matching when chart is deleted
If you insert an odoo chart, match a filter with one of the
chart field, then delete the chart
=> the field matching is not removed and is still exported

The same goes for pivot and list matching when they are removed

closes odoo/odoo#100390

Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2022-09-19 16:10:17 +02:00
Lucas Lefèvre f4b7265466 [FIX] spreadsheet: delete odoo link when chart is deleted
Create a chart and link an odoo menu to it.
Now delete the chart.
=> the link is not properly removed and is still exported

Part-of: odoo/odoo#100390
2022-09-19 16:10:16 +02:00
Lucas Lefèvre d08982684b [MOV] spreadsheet: move RecordSelector template to its own file
closes odoo/odoo#100246

Related: odoo/enterprise#31365
Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2022-09-16 14:25:41 +02:00
Lucas Lefèvre d1160cf45a [REF] spreadsheet: rename X2ManyTagSelector component
It feels more natural with the new name;
The "X2ManyTags" things is because it used to use
a many2many tags fields under the hood.
1) It's no longer true
2) It's an implementation detail

Part-of: odoo/odoo#100246
2022-09-16 14:25:41 +02:00
Lucas Lefèvre 79b9c0e03e [REF] spreadsheet: convert record selector to wowl components
The X2ManyTagSelector component still used a legacy many2many tags
widget under the hood and an adapter layer on top.
With this commit, it uses new components

Part-of: odoo/odoo#100246
2022-09-16 14:25:41 +02:00
Pierre Rousseau af436cc93f [FIX] spreadsheet: adding a list correctly store linesNumber
Before this revision, the number of inserted lines was not saved in
the list datasource. This revision fixes that.

closes odoo/odoo#100198

Related: odoo/enterprise#31333
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
2022-09-15 16:08:19 +02:00
Pierre Rousseau 6909640d90 [REF] spreadsheet: move migrate code from import to migration
Before this revision, the code to ensure that a list has a name was done
in the import function instead of the migration process.

Part-of: odoo/odoo#100198
2022-09-15 16:08:19 +02:00
Pierre Rousseau c873acc6dd [REF] spreadsheet: rename plugins
Before this revision, it was quite confusing to know which plugin was
the Core one and the UI one.
Having {Pivot|List}CorePlugin and {Pivot|List}UIPlugin is self explanatory.

Part-of: odoo/odoo#100198
2022-09-15 16:08:18 +02:00
Pierre Rousseau 7101ebb9f7 [FIX] spreadsheet: correctly apply filter on chart in dashboard mode
Before this commit, a global filter did not update the domain of a chart
in dashboard mode.

Task-id 2961578

closes odoo/odoo#100047

Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2022-09-15 10:03:00 +02:00
Gorash 39ea7a1fab [IMP] web/all: XML templates are now declared into the python manifest.
Adapt all manifest, split some XML file and update JavaScript files.

Part-of: odoo/odoo#95500
2022-09-14 20:25:01 +02:00
Pierre Rousseau ad2701d216 [MOV] spreadsheet: move template code to enterprise
Spreadsheet template feature is a feature enterprise but some part of
the code is located in community following a split in the modules.
The code is moved where it belongs.

closes odoo/odoo#100120

Related: odoo/enterprise#31292
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2022-09-14 16:18:14 +02:00
Adrien Minne ec8f2f6246 [IMP] spreadsheet: add last 90/180 days gloabl filters
Add a relative global filter for the last 90 days, and one for the last
180 days.

Odoo task 2968572

closes odoo/odoo#100085

Related: odoo/enterprise#30949
Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2022-09-14 13:39:51 +02:00
Rémi Rahir 19295506fd [IMP] spreadsheet: update o_spreadsheet to latest version
https://github.com/odoo/o-spreadsheet/commit/fd4cd7cf [FIX] style: use cell computed style to compute the text width
https://github.com/odoo/o-spreadsheet/commit/d0f02506 [IMP] link: do not display hover in dashboard mode
https://github.com/odoo/o-spreadsheet/commit/adc180a9 [IMP] InteractiveTests: Moved sort interactive tests to ui helper tests
https://github.com/odoo/o-spreadsheet/commit/e2f1f436 [IMP] menu_items_actions: default chart title
https://github.com/odoo/o-spreadsheet/commit/f19fdbfa [FIX] composer: ctrl clears topbar composer selection
https://github.com/odoo/o-spreadsheet/commit/c4ec1d78 [IMP] selection: dont select chart when it's updated
https://github.com/odoo/o-spreadsheet/commit/14b899ab [FIX] CF: Fix preview test for single color cf
https://github.com/odoo/o-spreadsheet/commit/5de0414b [FIX] charts: duplicating a sheet preserves figure dimensions
https://github.com/odoo/o-spreadsheet/commit/fe2e93f0 [FIX] scorecard: use evaluated format for baseline value

closes odoo/odoo#100049

Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2022-09-13 10:30:26 +02:00
Lucas LefèvreandPierre Rousseau cb5cca73a8 [ADD] spreadsheet_dashboard: introduce spreadsheet based dashboards
Our reporting dashboards are too tedious to use for the average user, and
doesn't allow for edition or advanced computations.

Using spreadsheet formulas allows almost endless possibilities.

Task-id 2799682

Part-of: odoo/odoo#97606
Co-authored-by: Lucas Lefèvre <lul@odoo.com>
Co-authored-by: Pierre Rousseau <pro@odoo.com>
2022-09-10 02:54:53 +02:00
Lucas Lefèvre bf5e59ddaf [MOV] spreadsheet: move filter components to community
Part-of: odoo/odoo#97606
2022-09-10 02:54:52 +02:00
Lucas Lefèvre 5f826b2b69 [FIX] spreadsheet: throw loading when additinal field is fetched
Part-of: odoo/odoo#97606
2022-09-10 02:54:52 +02:00
Lucas Lefèvre 2c06b1dd68 [IMP] spreadsheet[_account]: update o-spreadsheet to latest version
This update contains the following commit:
https://github.com/odoo/o-spreadsheet/commit/50e7c2006837f9c080d6d917920a04b1361b8b6a
https://github.com/odoo/o-spreadsheet/commit/7bc2a8f7c6c6ef33f38f87126a46b6093424b61f
https://github.com/odoo/o-spreadsheet/commit/90d64243a1ba13da402cf5b7611c762d5bba70f8
https://github.com/odoo/o-spreadsheet/commit/cb7534a9f6068bf9a1e008810ab3a3d83ae45d6c
https://github.com/odoo/o-spreadsheet/commit/a5236ad4b8a7a83a62c4806f2c7aa69d92535b8f

Part-of: odoo/odoo#97606
2022-09-10 02:54:52 +02:00
Lucas Lefèvre a20032cc1c [MOV] spreadsheet: move module to community
The spreadsheet module is moved to the community version
for the upcoming spreadsheet dashboards

This module is the core engine of spreadsheets in Odoo.
It contains `o-spreadsheet` library (o_spreadsheet.js) and all basic
integrations with odoo such as accounting formulas, lists, pivot, filters, etc.

This module alone does not have any action or menu to open a spreadsheet.
Those actions come with `documents_spreadsheet` module or the upcoming
`spreadsheet_dashboard` module.

Task 2799682

Part-of: odoo/odoo#97606
2022-09-10 02:54:51 +02:00