Skip to content

Commit

Permalink
[MIG] web_history_back: migration to 16.0
Browse files Browse the repository at this point in the history
Co-authored-by: Enric Tobella <[email protected]>
  • Loading branch information
kluna1998 and etobella committed Jan 23, 2025
1 parent 66ad589 commit 46249e8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 27 deletions.
9 changes: 7 additions & 2 deletions web_history_back/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@
"name": "Web History Back",
"summary": """
Add history back""",
"version": "14.0.1.0.0",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "CreuBlanca",
"website": "https://github.com/tegin/cb-addons",
"depends": ["web"],
"data": ["views/templates.xml"],
"data": [],
"demo": ["demo/res_partner.xml"],
"assets": {
"web.assets_backend": [
"/web_history_back/static/src/js/*.esm.js",
]
},
}
13 changes: 13 additions & 0 deletions web_history_back/static/src/js/action.esm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/** @odoo-module **/
import {Component, xml} from "@odoo/owl";
import {registry} from "@web/core/registry";

class HistoryBack extends Component {
setup() {
this.env.config.historyBack();
}
}
// We need to add a template to the component so that it can be rendered, but it will not be used...
HistoryBack.template = xml`<div></div>`;

registry.category("actions").add("history_back", HistoryBack);
10 changes: 0 additions & 10 deletions web_history_back/static/src/js/action.js

This file was deleted.

15 changes: 0 additions & 15 deletions web_history_back/views/templates.xml

This file was deleted.

0 comments on commit 46249e8

Please sign in to comment.