Skip to content

Commit 67342bd

Browse files
bso-odoodetrouxdev
authored andcommitted
[REF] web_editor, website: convert s_website_form options to Owl
task-3850413
1 parent b7dab7d commit 67342bd

File tree

7 files changed

+728
-646
lines changed

7 files changed

+728
-646
lines changed

addons/web_editor/static/src/js/editor/snippets.options.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2775,6 +2775,9 @@ class WeList extends UserValueComponent {
27752775
if (this.props.newElementsNotToggleable === "true") {
27762776
recordData.notToggleable = true;
27772777
}
2778+
if (this.props.newRecordId) {
2779+
recordData.id = this.props.newRecordId;
2780+
}
27782781
this.state._updateListRecords(recordData);
27792782
this._notifyCurrentState();
27802783
this.scrollToLast = true;

addons/website/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@
288288
'website/static/src/snippets/s_website_controller_page_listing_layout/options.js',
289289
'website/static/src/snippets/s_website_controller_page_listing_layout/options.xml',
290290
'website/static/src/snippets/s_website_form/options.js',
291+
'website/static/src/snippets/s_website_form/options.xml',
291292
'website/static/src/js/form_editor_registry.js',
292293
'website/static/src/js/send_mail_form.js',
293294
'website/static/src/xml/website_form.xml',

0 commit comments

Comments
 (0)