mirror of https://github.com/OCA/web.git
[MIG] web_tree_many2one_clickable: Migration to 15.0
parent
e663a865b9
commit
76206b6fb5
|
@ -7,7 +7,7 @@
|
||||||
{
|
{
|
||||||
"name": "Clickable many2one fields for tree views",
|
"name": "Clickable many2one fields for tree views",
|
||||||
"summary": "Open the linked resource when clicking on their name",
|
"summary": "Open the linked resource when clicking on their name",
|
||||||
"version": "14.0.1.0.2",
|
"version": "15.0.1.0.0",
|
||||||
"category": "Hidden",
|
"category": "Hidden",
|
||||||
"website": "https://github.com/OCA/web",
|
"website": "https://github.com/OCA/web",
|
||||||
"author": "Therp BV, "
|
"author": "Therp BV, "
|
||||||
|
@ -17,5 +17,13 @@
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"installable": True,
|
"installable": True,
|
||||||
"depends": ["web"],
|
"depends": ["web"],
|
||||||
"data": ["views/assets.xml"],
|
"data": [],
|
||||||
|
"assets": {
|
||||||
|
"web.assets_backend": [
|
||||||
|
"web_tree_many2one_clickable/static/src/js/*.js",
|
||||||
|
],
|
||||||
|
"web.assets_common": [
|
||||||
|
"web_tree_many2one_clickable/static/src/css/web_tree_many2one_clickable.scss",
|
||||||
|
],
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,9 +45,7 @@ odoo.define("web_tree_many2one_clickable.many2one_clickable", function (require)
|
||||||
// Append button
|
// Append button
|
||||||
var $a = $("<a/>", {
|
var $a = $("<a/>", {
|
||||||
href: "#",
|
href: "#",
|
||||||
class:
|
class: "o_form_uri btn btn-sm btn-secondary fa fa-angle-double-right",
|
||||||
"o_form_uri btn btn-sm btn-secondary" +
|
|
||||||
" fa fa-angle-double-right",
|
|
||||||
}).on("click", function (ev) {
|
}).on("click", function (ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
|
||||||
<!-- Copyright 2015 Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
|
|
||||||
Copyright 2019 Alexandre Díaz <alexandre.diaz@tecnativa.com>
|
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
|
||||||
<odoo>
|
|
||||||
<template
|
|
||||||
id="assets_backend"
|
|
||||||
name="web_tree_many2one_clickable assets"
|
|
||||||
inherit_id="web.assets_backend"
|
|
||||||
>
|
|
||||||
<xpath expr="." position="inside">
|
|
||||||
<link
|
|
||||||
rel="stylesheet"
|
|
||||||
href="/web_tree_many2one_clickable/static/src/css/web_tree_many2one_clickable.scss"
|
|
||||||
/>
|
|
||||||
<script
|
|
||||||
type="text/javascript"
|
|
||||||
src="/web_tree_many2one_clickable/static/src/js/web_tree_many2one_clickable.js"
|
|
||||||
/>
|
|
||||||
</xpath>
|
|
||||||
</template>
|
|
||||||
</odoo>
|
|
Loading…
Reference in New Issue