Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] product_template_multi_link: Migration to 18.0 #990

Merged
merged 55 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
fddef8a
[ADD] product_temlate_multi_link
legalsylvain Oct 4, 2017
d199fa2
[REF] rename type in link_type
legalsylvain Oct 10, 2017
ce9b602
OCA Transbot updated translations from Transifex
oca-transbot Jun 2, 2018
ba905f2
[UPD] Update product_template_multi_link.pot
oca-travis Sep 5, 2018
c0c53db
[IMP] product_template_multi_link: : black, isort
lmignon Nov 15, 2019
0ce43f8
[MIG] product_template_multi_link: Migration to 13.0
lmignon Nov 15, 2019
0061797
[FIX] pre-commit: xml prettier
lmignon May 15, 2020
b4ac2e5
[UPD] Update product_template_multi_link.pot
oca-travis Jun 11, 2020
4e0b493
[IMP] product_template_multi_link: Makes links bi-directional
lmignon Nov 15, 2019
634afbe
[UPD] Update product_template_multi_link.pot
oca-travis Jun 17, 2020
47dbf6f
product_template_multi_link 13.0.1.1.0
OCA-git-bot Jun 17, 2020
5f97a29
Update translation files
oca-transbot Jun 17, 2020
61e13aa
product_template_multi_link: fix link type data
simahawk Jul 17, 2020
347b074
product_template_multi_link 13.0.1.1.1
OCA-git-bot Jul 17, 2020
1946142
[13.0][IMP] Add form view on product_template_multi_link
TDu Aug 6, 2020
5e2126f
product_template_multi_link 13.0.1.2.0
OCA-git-bot Aug 14, 2020
43d579e
Update translation files
oca-transbot Aug 16, 2020
7bf0aa9
product_template_multi_link: ease overrides on link
simahawk Sep 15, 2020
23db577
Add product_variant_multi_link
simahawk Sep 15, 2020
8168497
Translated using Weblate (Vietnamese)
linhhonblade Sep 29, 2020
e6ac0ca
Translated using Weblate (Dutch)
bosd Dec 15, 2020
fa2c0b4
[MIG] product_template_multi_link: Migration to 14.0
chafique-delli Feb 2, 2021
0d5ad57
[UPD] Update product_template_multi_link.pot
oca-travis Jun 8, 2021
facfc0e
[UPD] README.rst
OCA-git-bot Jun 8, 2021
5005084
Translated using Weblate (Spanish (Argentina))
ibuioli Jun 9, 2021
8b61ee5
p_tmpl_multi_link: add is_link_active to turn on/off links
simahawk Feb 17, 2021
a3046b3
p_tmpl_multi_link: add get_links_by_code to template
simahawk Feb 17, 2021
f54f397
p_tmpl_multi_link: add get_by_code to link type
simahawk Feb 17, 2021
11c5389
p_tmpl_multi_link: fix write w/ no records
simahawk Feb 17, 2021
22a3bfa
[UPD] Update product_template_multi_link.pot
oca-travis Aug 3, 2021
6584182
product_template_multi_link 14.0.1.1.0
OCA-git-bot Aug 3, 2021
290d38e
Update translation files
oca-transbot Aug 3, 2021
f75786f
Translated using Weblate (Spanish (Argentina))
ibuioli Aug 29, 2021
68e40a5
[10.0][ADD] product_tempalte_multi_link: add possibility to link prod…
acsonefho Jul 16, 2020
079aba7
[IMP] product_template_multi_link: Makes links bi-directional
lmignon Nov 15, 2019
50813c4
[10.0][IMP] product_template_multi_link: Add migration scripts
rousseldenis Oct 22, 2020
812591f
[10.0][IMP] product_template_multi_link: Add indexes
rousseldenis Oct 22, 2020
18cf61a
[10.0][IMP] product_template_multi_link: Makes wizard bi-directional
rousseldenis Oct 23, 2020
ae1b08e
[UPD] Update product_template_multi_link.pot
oca-travis Nov 3, 2021
d16f0c9
[UPD] README.rst
OCA-git-bot Nov 3, 2021
a6e3e1b
product_template_multi_link 14.0.1.2.0
OCA-git-bot Nov 3, 2021
90335e3
Update translation files
oca-transbot Nov 3, 2021
964f5b2
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 8, 2021
40c0829
Translated using Weblate (Italian)
francesco-ooops Jul 5, 2022
7ffde1f
[MIG] product_template_multi_link: Migration to 15.0
HviorForgeFlow Oct 6, 2022
2c4ebfb
[16.0][MIG] - product_template_multi_link
sbejaoui Mar 20, 2023
29e1309
[UPD] Update product_template_multi_link.pot
Oct 17, 2023
467fb13
[BOT] post-merge updates
OCA-git-bot Oct 17, 2023
0904094
Translated using Weblate (Spanish)
Ivorra78 Oct 17, 2023
67f5c41
Translated using Weblate (Italian)
mymage Oct 29, 2023
6a23ecc
[IMP] product_template_multi_link: pre-commit auto fixes
David-Luis-Mora May 2, 2024
5c63de5
[MIG] product_template_multi_link: Migration to 17.0
David-Luis-Mora May 2, 2024
b7babd4
oca-port: blacklist PR(s) 800 for product_template_multi_link
thienvh332 Dec 6, 2024
02332b1
[IMP] product_template_multi_link: pre-commit auto fixes
thienvh332 Nov 27, 2024
3ed491e
[MIG] product_template_multi_link: Migration to 18.0
thienvh332 Nov 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .oca/oca-port/blacklist/product_template_multi_link.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"pull_requests": {
"800": "False Positive"
}
}
150 changes: 150 additions & 0 deletions product_template_multi_link/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
==============================
Product Multi Links (Template)
==============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0e0dd3b14b59f4440c366484a618e3e5f8e9b42e24c749930da65edd26e58102
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/18.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-18-0/e-commerce-18-0-product_template_multi_link
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/e-commerce&target_branch=18.0
:alt: Try me on Runboat

|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

|image1|

A kanban view is also available

|image2|

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

|image3|

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

|image4|

|Try me on Runbot|

.. |image1| image:: https://raw.githubusercontent.com/product_template_multi_link/static/description/product_template_link_tree.png
.. |image2| image:: https://raw.githubusercontent.com/product_template_multi_link/static/description/product_template_link_kanban.png
.. |image3| image:: https://raw.githubusercontent.com/product_template_multi_link/static/description/product_template_form.png
.. |image4| image:: https://raw.githubusercontent.com/product_template_multi_link/static/description/product_template_link_tree_edit.png
.. |Try me on Runbot| image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
: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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/e-commerce/issues/new?body=module:%20product_template_multi_link%0Aversion:%2018.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>
- `Binhex <https://binhex.cloud//com>`__:

- David Luis Mora <d.luis@binhex.cloud>

- Vo Hong Thien <thienvh@trobz.com>

Other credits
-------------

The migration of this module from 17.0 to 18.0 was financially supported
by Camptocamp.

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/18.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": "18.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
Loading