Comments (8)
In xpath, you need to prefix attributes in predicates with an @
. Try
<xpath expr="//div[@class='oe_single_form_footer']" position="replace">
But in the template, you'll see that the database manager part is wrapped in
<t t-if="not disable_database_manager">
why don't you simply that this flag from the module?
from web.
I thought about it, but... how do I set that flag? t-set? Shouldn't it be done inside the t-call (which I do not know how to reference)?
from web.
@hbrunn Got it!
This is working:
<openerp>
<data>
<template id="login_layout_no_db" inherit_id="web.login_layout" name="Login Layout">
<xpath expr="//div[@class='oe_single_form_footer']" position="before">
<t t-set="disable_database_manager" t-value="1"/>
</xpath>
</template>
</data>
</openerp>
I will prepare the pull request in the afternoon for review.
from web.
No, it is not working, though it worked once. But reloading it, just make it reappear.
I will work on it.
from web.
It is only working if I select the database in which I installed manually the module.
If I choose another database, it shows again.
Therefore, either --load=web,web_nocreatedb
or auto_install = True
are failling.
Any clue?
from web.
makes sense: auto_install = True
only has an effect if you update your module list and upgrade modules. v8 style templates only live in the database, so they must be installed in every database you want this to be in effect, and --load
only causes the code to load, not database changes being done.
What to do? As it's only a cosmetic module anyways (we can still access the database manager by url), it's fine to install this in every database where it's supposed to be effective
from web.
So auto_install and --load ares almost useless in this situation.
OK, I will explain it in module description.
from web.
Solved and made a pull request here: #89
from web.
Related Issues (20)
- Missing web_widget_text_markdown for newer versions HOT 3
- I would really like to get this module on version: 14.0 HOT 1
- causes a problem where the toolbar does not appear when text is selected in the editor within a popup window. web_responsive.scss file, specifically in lines 373-377. HOT 5
- [16.0] web_remember_tree_column_width: issues with HTML fields HOT 1
- [16.0] web_company_color: not working if not all colors are filled HOT 4
- [16.0] web_chatter_position: Button to switch between sided and bottom views HOT 3
- [16.0] web_responsive: document_url module is not working properly when installed
- [17.0] web_responsive: Main document preview is activated by default HOT 4
- [17.0]Can this module be migrated to the 17.0 version ?? HOT 6
- column width in tree view HOT 2
- [11.0] error install web_responsive module HOT 1
- [16.0] web_advanced_search bug HOT 7
- [16.0] web_responsive: The web responsive will revert back to odoo base behaviour when we reload the page from website. HOT 3
- [16.0] web_refresher: Refresh action returns to create a new record when already has been created the record HOT 3
- [16][web_responsive] Bold doest whows as normal text in HTML fields HOT 3
- web_widget_x2many_2d_matrix 17.0 can not edit the value
- [16.0] web_widget_x2many_2d_matrix: Error when value is Date HOT 1
- [16.0] web_responsive: The web responsive will revert back to odoo base behaviour when we reload the page from website. HOT 4
- [16.0] web_pivot_computed_measure - error when divide by 0
- [17.0] web_widget_x2many_2d_matrix - Domain is not taken into account
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web.