[IMP] spreadsheet: update o_spreadsheet to latest version
https://github.com/odoo/o-spreadsheet/commit/430f0907 [REL] 16.5.0-alpha.12 https://github.com/odoo/o-spreadsheet/commit/ca347935 [FIX] scorecard: fix baseline arrow https://github.com/odoo/o-spreadsheet/commit/07863006 [IMP] grid: add custom paste shortcuts https://github.com/odoo/o-spreadsheet/commit/8c94a5a6 [FIX] Selection: exclude hidden rows/cols in selection statistics Task: 3508872 https://github.com/odoo/o-spreadsheet/commit/383f5344 [FIX] Figure: Pass figure as child component props Task: / https://github.com/odoo/o-spreadsheet/commit/4b42059d [REL] 16.5.0-alpha.11 https://github.com/odoo/o-spreadsheet/commit/8635acf7 [FIX] charts: export gauge and scorecard charts in .xlsx Task: 3524473 https://github.com/odoo/o-spreadsheet/commit/a825627d [IMP] chart: Scorecard are now drawn on a canvas Task: 3524473 https://github.com/odoo/o-spreadsheet/commit/cb493613 [IMP] index: expose SelectionInput and toUnboundedZone Task: 3554062 https://github.com/odoo/o-spreadsheet/commit/8282716d [FIX] xlsx export: remove unsupported characters Task: 3552957 https://github.com/odoo/o-spreadsheet/commit/031593c2 [IMP] index: expose lettersToNumber https://github.com/odoo/o-spreadsheet/commit/450a4eae [REF] ot: extract and expose range transformation helper Task: 3554062 https://github.com/odoo/o-spreadsheet/commit/8da5fb29 [IMP] types: shorter getters declaration https://github.com/odoo/o-spreadsheet/commit/7e3bed67 [FIX] clipboard: cut/paste whole CF across sheets Task: 3502777 https://github.com/odoo/o-spreadsheet/commit/4e5f15f7 [FIX] icons: Fix icon svg's https://github.com/odoo/o-spreadsheet/commit/c81dce7e [IMP] evaluation: expose getCorrespondingFormulaCell Task: 3318865 https://github.com/odoo/o-spreadsheet/commit/854f2d74 [FIX] ChartPanel: traceback on deleting chart while editing data series Task: 3523882 https://github.com/odoo/o-spreadsheet/commit/d39ded8c [IMP] edition: cancel edition when setting format Task: 3515610 https://github.com/odoo/o-spreadsheet/commit/b742ae0e [IMP] formats: add more date and number formats Task: 3515610 https://github.com/odoo/o-spreadsheet/commit/5641af62 [REF] formats: use helper to create format action Task: 3515610 https://github.com/odoo/o-spreadsheet/commit/025ee4db [FIX] menu: truncate menu description Task: 3515610 https://github.com/odoo/o-spreadsheet/commit/278c019a [FIX] core: typo https://github.com/odoo/o-spreadsheet/commit/e6cad253 [MOV] tests: split tests files by category https://github.com/odoo/o-spreadsheet/commit/34d96c72 [FIX] headers_overlay: reselect full column or row as dataseries range Task: 3481617 closes odoo/odoo#139383 Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
This commit is contained in:
@@ -90,6 +90,8 @@ class SpreadsheetMixin(models.AbstractModel):
|
||||
return stream.getvalue()
|
||||
|
||||
def _get_file_content(self, file_path):
|
||||
if file_path.startswith('data:image/png;base64,'):
|
||||
return base64.b64decode(file_path.split(',')[1])
|
||||
_, args = self.env['ir.http']._match(file_path)
|
||||
file_record = self.env['ir.binary']._find_record(
|
||||
xmlid=args.get('xmlid'),
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,9 @@
|
||||
<!--
|
||||
This file is generated by o-spreadsheet build tools. Do not edit it.
|
||||
@see https://github.com/odoo/o-spreadsheet
|
||||
@version 16.5.0-alpha.10
|
||||
@date 2023-10-13T11:29:23.549Z
|
||||
@hash 30c3f691
|
||||
@version 16.5.0-alpha.12
|
||||
@date 2023-10-20T15:39:51.265Z
|
||||
@hash 430f0907
|
||||
-->
|
||||
<odoo>
|
||||
<t t-name="o-spreadsheet-ActionButton">
|
||||
@@ -678,35 +678,7 @@
|
||||
</t>
|
||||
|
||||
<t t-name="o-spreadsheet-ScorecardChart">
|
||||
<div class="o-scorecard w-100 h-100" t-att-style="chartStyle" t-ref="chart">
|
||||
<t t-set="textStyles" t-value="getTextStyles()"/>
|
||||
<div t-if="title" class="o-title-text" t-esc="title" t-att-style="textStyles.titleStyle"/>
|
||||
<div class="o-scorecard-content" t-att-style="chartContentStyle">
|
||||
<div class="o-key-text" t-if="keyValue" t-esc="keyValue" t-att-style="textStyles.keyStyle"/>
|
||||
<t t-if="baseline || baselineDescr">
|
||||
<div class="o-baseline-text" t-att-style="textStyles.baselineStyle">
|
||||
<t t-if="baseline">
|
||||
<t t-if="baselineArrowDirection === 'up'">
|
||||
<t t-call="o-spreadsheet-Icon.ARROW_UP">
|
||||
<t t-set="color" t-value="'fill : ' + runtime.baselineColor"/>
|
||||
</t>
|
||||
</t>
|
||||
<t t-if="baselineArrowDirection === 'down'">
|
||||
<t t-call="o-spreadsheet-Icon.ARROW_DOWN">
|
||||
<t t-set="color" t-value="'fill : ' + runtime.baselineColor"/>
|
||||
</t>
|
||||
</t>
|
||||
<span t-att-style="textStyles.baselineValueStyle" class="o-baseline-text-value">
|
||||
<t t-esc="baseline"/>
|
||||
</span>
|
||||
</t>
|
||||
<span t-att-style="textStyles.baselineDescrStyle" class="o-baseline-text-description">
|
||||
<t t-esc="translate(baselineDescr)"/>
|
||||
</span>
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
<canvas class="o-figure-canvas w-100 h-100" t-ref="chartContainer"/>
|
||||
</t>
|
||||
|
||||
<t t-name="o-spreadsheet-FigureComponent">
|
||||
@@ -1521,6 +1493,7 @@
|
||||
<t t-name="o-spreadsheet-Icon.CLEAR">
|
||||
<svg class="o-icon">
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M1.5 15a.75.75 0 0 0 0 1.5h15a.75.75 0 0 0 0-1.5M5.3 12.75c.1.1.3.2.5.2h4c.2 0 .4-.1.5-.2l5.5-5.5c.2-.3.2-.6 0-.8l-4.4-4.4c-.3-.2-.6-.2-.8 0l-4.8 4.8c-2.7 2.9-3.1 2.8-2.4 4M7 7.25l3.6 3.6-1 1-3.6.1-1.8-1.9"
|
||||
/>
|
||||
</svg>
|
||||
@@ -1927,7 +1900,7 @@
|
||||
</t>
|
||||
<t t-name="o-spreadsheet-Icon.BORDER_TYPE">
|
||||
<svg class="o-icon">
|
||||
<g fill="#000000" transform="translate(2 2)">
|
||||
<g fill="currentColor" transform="translate(2 2)">
|
||||
<polygon points="0 0 0 2 14 2 14 0"/>
|
||||
<polygon points="0 6 0 8 5 8 5 6"/>
|
||||
<polygon points="9 6 9 8 14 8 14 6"/>
|
||||
@@ -1940,7 +1913,7 @@
|
||||
</t>
|
||||
<t t-name="o-spreadsheet-Icon.BORDER_COLOR">
|
||||
<svg class="o-icon">
|
||||
<g fill="#000000" transform="translate(4 2)">
|
||||
<g fill="currentColor" transform="translate(4 2)">
|
||||
<polygon points="0 12 0 9 7 2 10 5 3 12"/>
|
||||
<polygon points="8 1 9 0 12 3 11 4"/>
|
||||
</g>
|
||||
@@ -1948,7 +1921,7 @@
|
||||
</t>
|
||||
<t t-name="o-spreadsheet-Icon.BORDER_NO_COLOR">
|
||||
<svg class="o-icon">
|
||||
<g fill="#000000">
|
||||
<g fill="currentColor">
|
||||
<polygon points="4 12 4 9 11 2 14 5 7 12"/>
|
||||
<polygon points="12 1 13 0 16 3 15 4"/>
|
||||
</g>
|
||||
@@ -2220,10 +2193,10 @@
|
||||
</svg>
|
||||
</t>
|
||||
<t t-name="o-spreadsheet-Icon.CHECK">
|
||||
<svg width="24" height="24" viewBox="3 0 24 24">
|
||||
<svg class="o-icon" viewBox="0 0 24 24">
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M18.707 7.293a1 1 0 0 1 0 1.414L11.414 16a2 2 0 0 1-2.828 0l-3.293-3.293a1 1 0 1 1 1.414-1.414L10 14.586l7.293-7.293a1 1 0 0 1 1.414 0z"
|
||||
fill="#000"
|
||||
/>
|
||||
</svg>
|
||||
</t>
|
||||
@@ -2473,7 +2446,7 @@
|
||||
<t t-set="description" t-value="menuItem.description(env)"/>
|
||||
<div
|
||||
t-if="description"
|
||||
class="o-menu-item-description ms-auto"
|
||||
class="o-menu-item-description ms-auto text-truncate"
|
||||
t-esc="description"
|
||||
/>
|
||||
<div
|
||||
@@ -4087,6 +4060,23 @@
|
||||
</div>
|
||||
</t>
|
||||
|
||||
<t t-name="o-spreadsheet-MoreFormatsPanel">
|
||||
<div class="o-more-formats-panel">
|
||||
<div
|
||||
t-foreach="dateFormatsActions"
|
||||
t-as="action"
|
||||
t-key="action.name(env)"
|
||||
t-att-data-name="action.name(env)"
|
||||
t-on-click="() => action.execute(env)"
|
||||
class="w-100 d-flex align-items-center border-bottom format-preview">
|
||||
<span class="ms-3 check-icon">
|
||||
<t t-if="action.isActive(env)" t-call="o-spreadsheet-Icon.CHECK"/>
|
||||
</span>
|
||||
<span t-out="action.description(env)"/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
<t t-name="o-spreadsheet-RemoveDuplicatesPanel">
|
||||
<div class="o-remove-duplicates">
|
||||
<div class="o-section">
|
||||
|
||||
Reference in New Issue
Block a user