Skip to content
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

Only Default Template works but not custom templates #189

Open
lisandi opened this issue Jun 13, 2017 · 2 comments
Open

Only Default Template works but not custom templates #189

lisandi opened this issue Jun 13, 2017 · 2 comments

Comments

@lisandi
Copy link

lisandi commented Jun 13, 2017

Hi Ivan
We installed a custom theme and it has already done some debranding (concerning Odoo) but not all. Unfortunately the website_debranding stops with an error when the xpath expr. can't be located.

Probably it would be a good idea to put this in an "if xpath expr" exists -> then get rid of it etc.
Otherwise website_debranding can only be used on sites with the default or probably with Templates made by Odoo S.A. but not with those from other companies even they get sold on Odoo S.A. website or elsewhere or are freely available on git.

Version 10 and we tested with website_debranding 10.0.1.0.0

.. server/Software/models.py", line 1083, in _validate_fields
    raise ValidationError("%s\n\n%s" % (_("Error while validating constraint"), tools.ustr(e)))
ParseError: "Error while validating constraint

Element '<xpath expr="//div[@t-ignore='true']">' cannot be located in parent view

Error context:
View `layout_footer_copyright`
[view_id: 2559, xml_id: n/a, model: n/a, parent_id: 625]
None" while parsing None:4, near
<data inherit_id="website.layout_footer_copyright">
    <xpath expr="//div[@t-ignore='true']" position="replace">
    </xpath>
</data>

Thanks Andi


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@arafatx
Copy link

arafatx commented Sep 20, 2017

what happen if you restart your server?

@yelizariev
Copy link
Collaborator

@lisandi correct. We can use python to apply such removing. One can find example here and make PR: https://github.com/it-projects-llc/misc-addons/blob/10.0/web_debranding/models/ir_ui_view.py

Sponsoring updates via bounty is welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants