-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web_nocreatedb: Trying to port to v8, unsuccessfully #88
Comments
In xpath, you need to prefix attributes in predicates with an But in the template, you'll see that the database manager part is wrapped in |
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)? |
@hbrunn Got it! <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. |
No, it is not working, though it worked once. But reloading it, just make it reappear. |
It is only working if I select the database in which I installed manually the module. Any clue? |
makes sense: 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 |
So auto_install and --load ares almost useless in this situation. |
Solved and made a pull request here: #89 |
Syncing from upstream OCA/web (10.0)
changed SO QWeb report BSMTS-171
Hi,
I am trying to port module web_nocreatedb to v8, without success, so far.
I have some doubts regarding the qweb inheritance, as well as I see difference usage in v7 and v8.
web/static/src/xml/base.xml
, which is added in 'qweb' within openerp.pyweb/views/webclient_templates.xml
, which is added in 'data' within openerp.pyThe exact template to modify in v8 is:
specifically, this part:
Previous thoughts:
openerp-gevent -c my_config_file --load=web,web_nocreatedb --database=my_db
First I tried to just change what is in web_nocreatedb v7 to point to the new ids, but doesn't seem to work, complaining about not boing within tags.
Then I tried to move it
web_nocreatedb/views/webclient_templates.xml
, but nothing seems to work either.Now I have this:
Also tried with xpath:
But in both cases I get this error:
Any direction to correctly port this module?
The text was updated successfully, but these errors were encountered: