Odoo Help


Had anyone tried to add own button color to the Website-Editor?

Mathias Neef
on 10/16/14, 12:10 PM 833 views

Had anyone tried to add an own button color to the Website-Builder?

I'm struggling wiht the xpath, but i don't get it. Every time I tried, I received an ParseError: "too many values to unpack" while parsing None:13

Problem is, that there is no unique hook to set the xpath, like an id or name.

Here is some code:
<template id="cp_link_style" inherit_id="website.editor.dialog.link" name="cp Link Style">
    <xpath expr="//input[@value='btn-danger']" position="after">
            <label class="btn btn-copado">copado Style<input value="btn-copado" class="link-style" type="radio" name="link-style-type"/></label>

and here are several xpath's:

<xpath expr="//li/label/input[@value='btn-danger and @name='link-style-type']" position="after">
<xpath expr="//label[text()='${Style}']/div/div/ul" position="inside">
<xpath expr="//li/label[@class='btn btn-danger']/input[@value='danger']" position="after">

The file which is "xpathed" is addons/website/static/src/xml/website.editor.xml

Thanks for help in advance.


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/16/14, 12:10 PM
Seen: 833 times
Last updated: 3/16/15, 8:10 AM