add web_window_title
This commit is contained in:
parent
c17ceb75a3
commit
190d1f09c2
11 changed files with 172 additions and 0 deletions
BIN
web_window_title/static/description/icon.png
Normal file
BIN
web_window_title/static/description/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 904 B |
33
web_window_title/static/description/index.html
Normal file
33
web_window_title/static/description/index.html
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<section class="oe_container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<div class="oe_span12">
|
||||
<h2 class="oe_slogan">Web Window Title</h2>
|
||||
<h3 class="oe_slogan">The custom web window title</h3>
|
||||
</div>
|
||||
<div class="oe_span12">
|
||||
<div class="oe_demo oe_picture oe_screenshot" style="max-height:none">
|
||||
<img src="main_screenshot.png"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="oe_container oe_dark">
|
||||
<div class="oe_row oe_spaced">
|
||||
<div class="oe_span6">
|
||||
<h3 class="oe_mt48 oe_slogan">Odoo/OpenERP Full Stack Customization and Development</h3>
|
||||
<div class="oe_mt32 oe_mb32 text-center">
|
||||
<a class="fa fa-eye" href="https://apps.odoo.com/apps/modules/browse?author=renjie%20%3Ci@renjie.me%3E" title="Works" target="_blank">Other Apps</a>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<a class="fa fa-envelope" href="mailto:i@renjie.me" title="Support">i@renjie.me</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="oe_span4">
|
||||
<div class="oe_demo oe_picture oe_screenshot">
|
||||
<a href="https://renjie.me" target="_blank">
|
||||
<img src="icon.png" title="Renjie Technology">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
BIN
web_window_title/static/description/main_screenshot.png
Normal file
BIN
web_window_title/static/description/main_screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
12
web_window_title/static/src/js/web_window_title.js
Normal file
12
web_window_title/static/src/js/web_window_title.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/** @odoo-module alias=web.window.title **/
|
||||
|
||||
import { WebClient } from "@web/webclient/webclient";
|
||||
import {patch} from "@web/core/utils/patch";
|
||||
|
||||
patch(WebClient.prototype, "Web Window Title", {
|
||||
setup() {
|
||||
const title = document.title;
|
||||
this._super();
|
||||
this.title.setParts({ zopenerp: title });
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue