Commit dad9584
committed
[FIX] standalone_composer: wrong composer content on start edition
When we have the pivot side panel open and that someone in collaborative
updates a calculated measure formula, the composer correctly shows the
updated formula. But if the composer is focused, it will show the
previous formula instead of the updated one.
This happens since 53f7692. In this commit, we update the composer
store `this.editionMode` before calling `getComposerContent`, which make
sense. But the `getComposerContent` implementation of the standalone
composer store does not return the updated formula if
`this.editionMode` is not inactive.
With this commit, `getComposerContent` of the standalone composer always
returns the updated formula and never the current store state. I don't
think it should cause any issues, since `getComposerContent` is only
called when displaying the inactive composer content, and when
starting the edition. In both cases, we want to show the updated
formula.
closes #8102
Task: 6022743
X-original-commit: 4052315
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>1 parent 04d519e commit dad9584
File tree
2 files changed
+45
-16
lines changed- src/components/composer/standalone_composer
- tests/pivots
2 files changed
+45
-16
lines changedLines changed: 13 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
66 | 63 | | |
67 | 64 | | |
68 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
215 | 247 | | |
216 | 248 | | |
217 | 249 | | |
| |||
0 commit comments