Skip to content

Commit

Permalink
Merge PR #774 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Oct 17, 2023
2 parents c399f55 + 147a3d3 commit 3f85b0c
Show file tree
Hide file tree
Showing 107 changed files with 24,581 additions and 0 deletions.
136 changes: 136 additions & 0 deletions product_template_multi_link/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
==============================
Product Multi Links (Template)
==============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github
:target: https://github.com/OCA/e-commerce/tree/14.0/product_template_multi_link
:alt: OCA/e-commerce
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/e-commerce-14-0/e-commerce-14-0-product_template_multi_link
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/113/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

**Table of contents**

.. contents::
:local:

Usage
=====

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

.. figure:: https://raw.githubusercontent.com/product_template_multi_link/static/description/product_template_link_tree.png
:width: 800 px

A kanban view is also available

.. figure:: https://raw.githubusercontent.com/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:: https://raw.githubusercontent.com/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:: https://raw.githubusercontent.com/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/14.0

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.

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/e-commerce/issues/new?body=module:%20product_template_multi_link%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* GRAP
* ACSONE SA/NV

Contributors
~~~~~~~~~~~~

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

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

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

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.

This module is part of the `OCA/e-commerce <https://github.com/OCA/e-commerce/tree/14.0/product_template_multi_link>`_ project on GitHub.

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

from . import models
from . import wizards
26 changes: 26 additions & 0 deletions product_template_multi_link/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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": "16.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": [
"data/product_template_link_type.xml",
"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",
"wizards/product_template_linker.xml",
],
"demo": ["demo/product_template_link_type.xml", "demo/product_template_link.xml"],
"installable": True,
}
19 changes: 19 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,19 @@
<?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>
17 changes: 17 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,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="link_cross_selling_1" model="product.template.link">
<field
name="left_product_tmpl_id"
ref="product.product_product_7_product_template"
/>
<field
name="right_product_tmpl_id"
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>
Loading

0 comments on commit 3f85b0c

Please sign in to comment.