Skip to content

Commit

Permalink
Merge 35ebf04 into bc0acc2
Browse files Browse the repository at this point in the history
  • Loading branch information
lmignon committed Nov 16, 2019
2 parents bc0acc2 + 35ebf04 commit 0553218
Show file tree
Hide file tree
Showing 101 changed files with 9,962 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ line_length=88
known_odoo=odoo
known_odoo_addons=odoo.addons
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
known_third_party=
known_third_party=psycopg2,setuptools
119 changes: 119 additions & 0 deletions product_template_multi_link/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

=============================
Product Multi Link (Template)
=============================

This module extends the functionality of sale module to support links between
products templates.

This module adds two types of links :

- **Cross Selling** : suggest your customer to purchase an additional product
- **Up Selling** : suggest your customers to purchase a higher-end product,
an upgrade, etc.

These types of links are common in e-commerce shops.

It can be used as a base to implement synchronizations with e-commerce.

Important Note
--------------

This module is linking products together (product templates), not product
variants. For that purpose, you can use the module Product Multi Link
(Variants), in the same OCA / e-commerce repository.

Usage
=====

* To mass edit or create links between products templates, Go to
Sale > Configuration > Products > Product Links

.. figure:: /product_template_multi_link/static/description/product_template_link_tree.png
:width: 800 px

A kanban view is also available

.. figure:: /product_template_multi_link/static/description/product_template_link_kanban.png
:width: 800 px


* You can manage links by product, Go to Sales > Sales > Products and select
a product

.. figure:: /product_template_multi_link/static/description/product_template_form.png
:width: 800 px

* You can so add new item, line by line, via an editable tree view

.. figure:: /product_template_multi_link/static/description/product_template_link_tree_edit.png
:width: 800 px


.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/113/10.0

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/e-commerce/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.

Known issues / Roadmap
======================

* This module links templates together. 'product_multi_link' links variants
together. We could, in a next version of Odoo, include variants features
in that module, and adding a new group in 'Manage Product Variant Links'.

* Develop another module product_template_multi_link_customer, that adds
a new type of link named 'customer'. Those links could be generated
automatically by scheduled cron task, analyzing sale.order.line.
Odoo could create so, the 3 most products sold when a given product is
sold.

Credits
=======

Images
------

* https://www.iconfinder.com/icons/285808/auto_automobile_car_vehicle_icon
* https://www.iconfinder.com/iconsets/kitchen-appliances-computers-and-electronics

(Free for commercial Use)

Contributors
------------

* Sylvain LE GAL <http://www.twitter.com/legalsylvain>

Do not contact contributors directly about support or help with technical issues.

Funders
-------

The development of this module has been financially supported by:

* GRAP, Groupement Régional Alimentaire de Proximité <http://www.grap.coop>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.
5 changes: 5 additions & 0 deletions product_template_multi_link/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# © 2011 Guewen Baconnier,Camptocamp,Elico-Corp
# © 2016 Sodexis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
28 changes: 28 additions & 0 deletions product_template_multi_link/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2017-Today GRAP (http://www.grap.coop).
# @author Sylvain LE GAL <https://twitter.com/legalsylvain>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Product Multi Links (Template)",
"version": "13.0.1.0.0",
"category": "Generic Modules",
"author": "GRAP, ACSONE SA/NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/e-commerce",
"license": "AGPL-3",
"depends": ["sale"],
"data": [
"security/product_template_link_type.xml",
"views/product_template_link_type.xml",
"security/ir.model.access.csv",
"views/action.xml",
"views/product_template_view.xml",
"views/product_template_link_view.xml",
"views/menu.xml",
],
"demo": [
"data/product_template_link_type.xml",
"demo/product_template_link_type.xml",
"demo/product_template_link.xml",
],
"installable": True,
}
17 changes: 17 additions & 0 deletions product_template_multi_link/data/product_template_link_type.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2019 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<odoo noupdate="1">

<record model="product.template.link.type" id="product_template_link_type_cross_selling">
<field name="name">Cross Selling</field>
<field name="code">cross-selling</field>
</record>

<record model="product.template.link.type" id="product_template_link_type_up_selling">
<field name="name">Up Selling</field>
<field name="code">up-selling</field>
</record>

</odoo>
10 changes: 10 additions & 0 deletions product_template_multi_link/demo/product_template_link.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<record id="link_cross_selling_1" model="product.template.link">
<field name="product_tmpl_id_left" ref="product.product_product_7_product_template"/>
<field name="product_tmpl_id_right" ref="product.product_product_9_product_template"/>
<field name="type_id" ref="product_template_multi_link.product_template_link_type_cross_selling"/>
</record>

</odoo>
15 changes: 15 additions & 0 deletions product_template_multi_link/demo/product_template_link_type.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2019 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<odoo>

<record model="product.template.link.type" id="product_template_link_type_demo_range">
<field name="is_symmetric" eval="0"/>
<field name="name">Upper Range</field>
<field name="inverse_name">Lower Range</field>
<field name="code">upper-range</field>
<field name="inverse_code">lower-range</field>
</record>

</odoo>
128 changes: 128 additions & 0 deletions product_template_multi_link/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_template_multi_link
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-01 11:28+0000\n"
"PO-Revision-Date: 2018-06-01 11:28+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2018\n"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"Language: am\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: product_template_multi_link
#: model:ir.model.fields,help:product_template_multi_link.field_product_template_link_link_type
msgid ""
"* Cross-Sell : suggest your customer to purchase an additional product\n"
"* Up-Sell : suggest your customer to purchase a higher-end product, an "
"upgrade, etc."
msgstr ""

#. module: product_template_multi_link
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_template_link_create_uid
msgid "Created by"
msgstr "Creado por"

#. module: product_template_multi_link
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_template_link_create_date
msgid "Created on"
msgstr "Creado en"

#. module: product_template_multi_link
#: selection:product.template.link,link_type:0
msgid "Cross-Sell"
msgstr ""

#. module: product_template_multi_link
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_template_link_display_name
msgid "Display Name"
msgstr ""

#. module: product_template_multi_link
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_template_link_id
msgid "ID"
msgstr "ID"

#. module: product_template_multi_link
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_template_link___last_update
msgid "Last Modified on"
msgstr ""

#. module: product_template_multi_link
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_template_link_write_uid
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: product_template_multi_link
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_template_link_write_date
msgid "Last Updated on"
msgstr "Última actualización en"

#. module: product_template_multi_link
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_template_link_link_type
msgid "Link Type"
msgstr ""

#. module: product_template_multi_link
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_template_link_linked_product_template_id
msgid "Linked Product"
msgstr ""

#. module: product_template_multi_link
#: model:ir.actions.act_window,name:product_template_multi_link.action_product_template_link
#: model:ir.actions.act_window,name:product_template_multi_link.action_product_template_link_from_product_template
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_product_product_template_link_ids
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_template_product_template_link_ids
#: model:ir.ui.menu,name:product_template_multi_link.menu_product_template_link
#: model:ir.ui.view,arch_db:product_template_multi_link.product_product_link_form
msgid "Product Links"
msgstr ""

#. module: product_template_multi_link
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_product_product_template_link_qty
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_template_product_template_link_qty
msgid "Product Links Quantity"
msgstr ""

#. module: product_template_multi_link
#: model:ir.model,name:product_template_multi_link.model_product_template
msgid "Product Template"
msgstr ""

#. module: product_template_multi_link
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_template_link_linked_image_128
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_template_link_image_128
msgid "Small-sized image"
msgstr ""

#. module: product_template_multi_link
#: model:ir.model.fields,help:product_template_multi_link.field_product_template_link_linked_image_128
#: model:ir.model.fields,help:product_template_multi_link.field_product_template_link_image_128
msgid ""
"Small-sized image of the product. It is automatically resized as a 64x64px "
"image, with aspect ratio preserved. Use this field anywhere a small image is "
"required."
msgstr ""

#. module: product_template_multi_link
#: model:ir.model.fields,field_description:product_template_multi_link.field_product_template_link_product_template_id
msgid "Source Product"
msgstr ""

#. module: product_template_multi_link
#: selection:product.template.link,link_type:0
msgid "Up-Sell"
msgstr ""

#. module: product_template_multi_link
#: model:ir.model,name:product_template_multi_link.model_product_template_link
msgid "product.template.link"
msgstr ""

0 comments on commit 0553218

Please sign in to comment.