Odoo Help


This community 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.


Customization of Jobs publishing in social Media

on 10/8/15, 2:38 AM 324 views


I need to know that how can i add one button into website for publish current job only in Linked-in . Is that possible ?? I found the code from website/views/website_templates . 


<template id="publish_management">

<div groups="base.group_website_publisher" t-ignore="true" class="pull-right css_editable_mode_hidden" t-att-style="style or ''">

<div t-attf-class="btn-group js_publish_management #{object.website_published and 'css_published' or 'css_unpublished'}" t-att-data-id="object.id" t-att-data-object="object._name" t-att-data-controller="publish_controller">

<button class="btn btn-danger js_publish_btn">Not Published</button>

<button class="btn btn-success js_publish_btn">Published</button>

<button type="button" t-attf-class="btn btn-default dropdown-toggle" t-att-id="'dopprod-%s' % object.id" data-toggle="dropdown">

<span class="caret"></span>


<ul class="dropdown-menu" role="menu" t-att-aria-labelledby="'dopprod-%s' % object.id">


<a href="#" class="js_publish_btn">

<span class="css_unpublish">Unpublished</span>

<!-- <span class="css_publish">Publish Facebook</span>-->

<span class="css_publish">Publish</span>



<t t-raw="0"/>

<li t-if="publish_edit">

<a t-attf-href="/web#return_label=Website&amp;view_type=form&amp;model=#{object._name}&amp;id=#{object.id}&amp;action=#{action}"

title='Edit in backend'>Edit</a>







like this. How can i add my custom button into this ??



Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 10/8/15, 2:38 AM
Seen: 324 times
Last updated: 10/8/15, 2:38 AM