Giter VIP home page Giter VIP logo

Comments (8)

hbrunn avatar hbrunn commented on July 30, 2024

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.

alejandrosantana avatar alejandrosantana commented on July 30, 2024

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.

alejandrosantana avatar alejandrosantana commented on July 30, 2024

@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.

alejandrosantana avatar alejandrosantana commented on July 30, 2024

No, it is not working, though it worked once. But reloading it, just make it reappear.
I will work on it.

from web.

alejandrosantana avatar alejandrosantana commented on July 30, 2024

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.

hbrunn avatar hbrunn commented on July 30, 2024

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.

alejandrosantana avatar alejandrosantana commented on July 30, 2024

So auto_install and --load ares almost useless in this situation.
OK, I will explain it in module description.

from web.

alejandrosantana avatar alejandrosantana commented on July 30, 2024

Solved and made a pull request here: #89

from web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.