Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
4cca7cca by Cédric Krier at 2023-03-09T00:21:06+01:00
Call record saved after saving the current record of the screen
Since 403bc7a95b0a record_saved has been implemented but it is not called by
the Screen when saving record.
Closes #12117, #12137
- - - - -
1 changed file:
- sao/src/screen.js
Changes:
=====================================
sao/src/screen.js
=====================================
@@ -1594,7 +1594,9 @@
}
const display = () => {
// Return the original promise to keep succeed/rejected state
- return this.display().then(() => prm, () => prm);
+ return this.display()
+ .always(() => this.record_saved())
+ .then(() => prm, () => prm);
};
return prm.then(current_record => {
if (path && current_record && current_record.id) {
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/4cca7cca2fc1f4a8cced8951dda60dde35e36a7b
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/4cca7cca2fc1f4a8cced8951dda60dde35e36a7b
You're receiving this email because of your account on foss.heptapod.net.