Skip to content

Commit

Permalink
[MIG] website_form_require_legal: Migration to version 16.0
Browse files Browse the repository at this point in the history
TT44376
  • Loading branch information
pilarvargas-tecnativa committed Nov 6, 2023
1 parent 6992fce commit f642fbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 4 additions & 3 deletions website_form_require_legal/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
{
"name": "Website Form Require Legal",
"summary": "Add possibility to require confirm legal terms.",
"version": "15.0.1.0.0",
"version": "16.0.1.0.0",
"category": "Website",
"license": "LGPL-3",
"website": "https://github.com/OCA/website",
"author": "Tecnativa, Odoo Community Association (OCA)",
"application": False,
"installable": True,
"depends": ["website"],
"depends": ["web_editor", "website"],
"data": ["views/snippets.xml"],
"assets": {
"website.assets_wysiwyg": [
"website_form_require_legal/static/src/js/options.js"
"website_form_require_legal/static/src/js/options.js",
"website_form_require_legal/static/src/xml/website_form_editor.xml",
],
"web.assets_frontend": [
"website_form_require_legal/static/src/scss/website_form_legal.scss"
Expand Down
8 changes: 2 additions & 6 deletions website_form_require_legal/static/src/js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@ odoo.define("website_form_require_legal.form_editor", function (require) {

const core = require("web.core");
const options = require("web_editor.snippets.options");
require("website.editor.snippets.options");
require("website.form_editor_registry");

const qweb = core.qweb;
const WebsiteFormEditor = options.registry.WebsiteFormEditor;

WebsiteFormEditor.include({
xmlDependencies: (WebsiteFormEditor.prototype.xmlDependencies || []).concat([
"/website_form_require_legal/static/src/xml/website_form_editor.xml",
]),
options.registry.WebsiteFormEditor.include({
/**
* @override
*/
Expand Down

0 comments on commit f642fbe

Please sign in to comment.