{% extends "admin/change_list.html" %}
{% load i18n %}

{% block object-tools-items %}
  {{ block.super }}
  {% if has_add_permission %}
    <li><a href="{% url 'admin:core_product_register_from_odoo' %}" class="addlink">{% translate "Register from Odoo" %}</a></li>
  {% else %}
    <li><a href="{% url 'admin:core_product_register_from_odoo' %}">{% translate "Register from Odoo" %}</a></li>
  {% endif %}
{% endblock %}
