<template id="assets_backend" inherit_id="web.assets_backend">
<xpath expr="//script[last()]" position="after">
<script type="text/javascript" src="/my_module/static/src/js/location_search.js"></script>
</xpath>
</template>
<template id="my_module.location_input" inherit_id="my_module.planned_location_template" customize_show="True">
<xpath expr="//div[@name='my_module_location_search']" position="inside">
<div class="r_input">
<input type="text"/>
</div>
</xpath>
</template>
the js file:odoo.define('my_module.location_input', function (require) {"use strict";
console.log('location searchbar');
var publicWidget = require('web.public.widget');
publicWidget.registry.LocationSearchBar =publicWidget.Widget.extend({
selector: '.r_input',
});
});
This question has been flagged
1
Reply
8039
डेटा देखने का तरीका
Hi,
Change the inherit_id to web.assets_frontend instead of web.assets_backend
Regards
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
साइन अप करें| Related Posts | Replies | डेटा देखने का तरीका | ऐक्टिविटी | |
|---|---|---|---|---|
|
|
1
मई 23
|
4509 | ||
|
|
0
जुल॰ 21
|
5583 | ||
|
|
0
जून 21
|
6329 | ||
|
|
0
मई 23
|
5115 | ||
|
|
1
जन॰ 23
|
10136 |