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_variant_configurator: Migration to 18.0 #385

Open
wants to merge 129 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
cf33caa
product_variant_configurator
zakmak88 Oct 22, 2016
3340132
purchase_variant_configurator: This module has been ported from the o…
zakmak88 Oct 24, 2016
175ba53
fix warning when setting last attribute
sbidoul Oct 30, 2016
1c33ad1
Add some tests to the product_variant_configurator (#4)
Nov 1, 2016
cd21850
disable test of onchange_no_create_variant
sbidoul Nov 1, 2016
0bae9e7
typo in product attributes validity constraint [IMP] attribute prices…
sbidoul Nov 2, 2016
8b87cec
remove old api method that is not used, untested and unmaintained
sbidoul Nov 3, 2016
592abdc
Display product.product from the same way in the purchase order
zakmak88 Nov 9, 2016
9d0bdd9
Test configuration validity before confirming the purchase order
zakmak88 Nov 12, 2016
c300afe
much simpler purchase_product_variant_configurator (no code, view only)
sbidoul Nov 12, 2016
0256f2c
Add new field to compute when the compute can be created [FIX] Use sa…
lmignon Nov 9, 2016
7920a4f
improve visibility rule for the create product checkbox
sbidoul Nov 9, 2016
dccfc8d
*_variant_configurator:
lmignon Nov 11, 2016
75135aa
*_variant_configurator
lmignon Nov 14, 2016
a300eb3
Fix _compute_can_be_created method
zakmak88 Nov 15, 2016
1375a66
product.configurator.attribute: delcare ondelete on owner_id The 'ond…
lmignon Nov 15, 2016
96f232f
product_attribute._compute_can_be_created: don't exit from the loop o…
lmignon Nov 15, 2016
0654f90
prefix onchange methods with _
sbidoul Nov 20, 2016
b41462f
product_variant_configurator: fix bug in create_variant_ids s/not sel…
zakmak88 Dec 4, 2016
760810e
OCA Transbot updated translations from Transifex
oca-transbot Jan 14, 2017
028a3d1
[MIG] product_variant_configurator: Migration to 10.0
chienandalu Jul 4, 2017
93575d8
OCA Transbot updated translations from Transifex
oca-transbot Dec 2, 2017
71b2289
[FIX] *_variant_configurator*: Adjust things for proper purchase on c…
pedrobaeza Dec 14, 2017
68bb7bf
OCA Transbot updated translations from Transifex
oca-transbot Dec 16, 2017
ede2c76
[IMP] product_variant_configurator: Add required flag to attribute lines
pedrobaeza Dec 15, 2017
a68ee4a
OCA Transbot updated translations from Transifex
oca-transbot Dec 30, 2017
c0ce26a
[UPD] Update product_variant_configurator.pot
oca-travis Jun 23, 2018
2ad7b3e
[MIG] product_variant_configurator: Migration to 11.0
angelmoya Oct 24, 2018
ebe17e6
[UPD] Update product_variant_configurator.pot
oca-travis Oct 24, 2018
fc56573
Update translation files
oca-transbot Dec 9, 2018
b68e531
[FIX] product_variant_configurator: Fix purchase_variant_configurator…
pedrobaeza Jan 15, 2019
7600fc1
[IMP] product_variant_configurator: Fill configurator vals in creation
pedrobaeza Jan 31, 2019
c9180ee
[FIX] product_variant_configurator: Don't empty attributes on consecu…
pedrobaeza Jan 31, 2019
058543f
[UPD] Update product_variant_configurator.pot
oca-travis Feb 1, 2019
f731e37
Translated using Weblate (Spanish)
mvrodriguez Mar 1, 2019
e17065e
Update translation files
oca-transbot Mar 3, 2019
576ae1a
[11.0][FIX] product_variant_configurator
AdriaGForgeFlow Mar 11, 2019
9671d06
[ADD] icon.png
OCA-git-bot Apr 3, 2019
3ecda26
[12.0][MIG] product_variant_configurator
AdriaGForgeFlow Jun 19, 2019
91c955a
[UPD] Update product_variant_configurator.pot
oca-travis Sep 14, 2020
420583c
[UPD] README.rst
OCA-git-bot Sep 14, 2020
260fe0b
product_variant_configurator 12.0.1.0.1
OCA-git-bot Sep 14, 2020
67f14f1
[IMP] product_variant_configurator: black, isort, prettier
HviorForgeFlow Sep 14, 2020
cf62e77
[MIG] product_variant_configurator: Migration to 13.0
HviorForgeFlow Sep 14, 2020
9765316
fixup! name_get show attributes for no_variant ones
HviorForgeFlow Sep 16, 2020
838b9a1
[FIX] product_variant_configurator: create_variant_if_needed
ThomasBinsfeld Oct 28, 2020
787d4eb
[UPD] Update product_variant_configurator.pot
oca-travis Nov 19, 2020
bfcbbc8
[UPD] README.rst
OCA-git-bot Nov 19, 2020
d68cc61
[13.0][IMP] product_variant_configurator: Add website_sale incompatib…
HviorForgeFlow Nov 25, 2020
e8da309
[UPD] README.rst
OCA-git-bot Nov 28, 2020
98cc6ec
Update translation files
oca-transbot Nov 28, 2020
9ff24f1
[MIG] sale_variant_configurator: Migration to 13.0
chienandalu Jan 27, 2021
c5b2677
Translated using Weblate (Dutch)
tarteo Jan 29, 2021
2293cfa
[UPD] Update product_variant_configurator.pot
oca-travis Jan 31, 2021
0b9af87
Update translation files
oca-transbot Jan 31, 2021
500444c
[IMP] product_variant_configurator: Use Many2oneReference + index
pedrobaeza Feb 7, 2021
3109ab9
product_variant_configurator 13.0.1.1.0
OCA-git-bot Feb 8, 2021
33c1e9c
[FIX] product_variant_configurator: attribute of product.configurator…
ThomasBinsfeld Mar 4, 2021
f00b570
Translated using Weblate (Spanish)
anasuarez1 Mar 16, 2021
3165e2b
Translated using Weblate (Spanish (Argentina))
ibuioli Apr 4, 2021
b366e02
[IMP] product_variant_configurator: Resilient tests
pedrobaeza Sep 23, 2021
9614252
product_variant_configurator 13.0.1.1.1
OCA-git-bot Oct 28, 2021
042e9ec
[IMP] product_variant_configurator: Performance on domain
pedrobaeza Oct 28, 2021
e2759e3
[13.0][NEW]product_variant_configurator_website_sale
Rad0van Jun 24, 2021
e0cc0f8
[UPD] README.rst
OCA-git-bot Nov 27, 2021
f0c214d
[FI48] Fix product_variant_configurator
HviorForgeFlow Dec 13, 2021
ffc845d
[imp] product_variant_configurator: add context parameter bypass_vari…
JordiBForgeFlow Feb 4, 2022
955a308
[UPD] Update product_variant_configurator.pot
oca-travis Mar 14, 2022
91ffc32
product_variant_configurator 13.0.1.1.3
OCA-git-bot Mar 14, 2022
1d90e11
Update translation files
oca-transbot Mar 14, 2022
a42cda3
product_variant_configurator 13.0.1.1.4
OCA-git-bot Mar 16, 2022
aa3540e
[FIX] product_variant_configurator: _build_attributes_domain
May 6, 2022
f312b02
product_variant_configurator 13.0.1.1.5
OCA-git-bot May 6, 2022
a356c16
[IMP] product_variant_configurator: black, isort, prettier
HviorForgeFlow Jul 7, 2022
25dcb08
[MIG] product_variant_configurator: Migration to 14.0
HviorForgeFlow Jul 7, 2022
4c29179
[MIG] product_variant_configurator: Migration to 15.0
JasminSForgeFlow Jul 14, 2022
c8a1d24
[UPD] Update product_variant_configurator.pot
Sep 2, 2022
fdb875e
[UPD] README.rst
OCA-git-bot Sep 2, 2022
b32946b
Translated using Weblate (Italian)
francesco-ooops Jan 3, 2023
23008b8
Translated using Weblate (Italian)
francesco-ooops Jan 18, 2023
a6a5558
[MIG] product_variant_configurator: Migration to 16.0
SergioPSV Mar 3, 2023
952a17c
Update README.rst
SergioPSV Jun 1, 2023
0bcf2cf
[MIG] product_variant_configurator: Migration to 16.0. Supersede migr…
EvaSForgeFlow Sep 8, 2023
305d861
[UPD] Update product_variant_configurator.pot
Oct 2, 2023
6dfd167
[BOT] post-merge updates
OCA-git-bot Oct 2, 2023
f2029f6
Update translation files
weblate Oct 9, 2023
a2eb3f3
Translated using Weblate (Spanish)
Ivorra78 Oct 10, 2023
61c7a5d
Translated using Weblate (Italian)
mymage Oct 13, 2023
3159d88
Translated using Weblate (Italian)
mymage Oct 29, 2023
99d9e7c
Translated using Weblate (Italian)
mymage Nov 9, 2023
3f618fb
Translated using Weblate (Italian)
mymage Nov 10, 2023
4879677
Translated using Weblate (Italian)
mymage Nov 10, 2023
168db0b
[16.0][FIX] product_variant_configurator: implement model_create_multi
alexbottemanne Dec 26, 2023
cecef43
[BOT] post-merge updates
OCA-git-bot Jan 5, 2024
0b1e6de
[FIX] product_variant_configurator: Solve recursion error.
JordiBForgeFlow Jan 11, 2024
bc446c5
[UPD] Update product_variant_configurator.pot
Jan 11, 2024
0ab7879
[BOT] post-merge updates
OCA-git-bot Jan 11, 2024
038c105
Update translation files
weblate Jan 11, 2024
e6e5b90
Translated using Weblate (Spanish)
Ivorra78 Jan 11, 2024
fb6c057
Translated using Weblate (Italian)
mymage Jan 15, 2024
ca06f78
[UPD] Update product_variant_configurator.pot
Feb 14, 2024
a5eb78a
Update translation files
weblate Feb 14, 2024
b820384
Translated using Weblate (Spanish)
Ivorra78 Feb 14, 2024
4a7110e
Translated using Weblate (Italian)
mymage Feb 16, 2024
e1efed3
[FIX] product_variant_configurator: returning domains in onchange doe…
jdoutreloux Mar 7, 2024
a118aab
[UPD] Update product_variant_configurator.pot
Apr 2, 2024
5594b55
[BOT] post-merge updates
OCA-git-bot Apr 2, 2024
4b20de9
Update translation files
weblate Apr 2, 2024
f884550
Translated using Weblate (Italian)
mymage Apr 3, 2024
454cff5
[MIG] purchase_variant_configurator: Migration to 16.0
alexbottemanne Jan 8, 2024
bfff9fa
[UPD] Update product_variant_configurator.pot
Apr 24, 2024
c256ed0
Update translation files
weblate Apr 24, 2024
99cf2fe
Translated using Weblate (Italian)
mymage Apr 29, 2024
98187de
[16.0][IMP] product_variant_configurator: Change development status t…
carolinafernandez-tecnativa May 17, 2024
df00664
[BOT] post-merge updates
OCA-git-bot May 17, 2024
685a76e
Translated using Weblate (Portuguese (Brazil))
May 22, 2024
c1b081f
Translated using Weblate (Portuguese (Brazil))
May 22, 2024
107f3fb
[FIX] product_variant_configurator: add existence condition to set name
glitchov May 23, 2024
8e4ab16
[BOT] post-merge updates
OCA-git-bot May 23, 2024
19a2fb3
[IMP] product_variant_configurator: black, isort, prettier
manuelregidor Jun 6, 2024
05e619d
[MIG] product_variant_configurator: Migration to 17.0
manuelregidor Jun 6, 2024
106cceb
[UPD] Update product_variant_configurator.pot
Jun 18, 2024
022fc50
[BOT] post-merge updates
OCA-git-bot Jun 18, 2024
9da8371
[UPD] Update product_variant_configurator.pot
Jul 10, 2024
a3af5b2
Update translation files
weblate Jul 10, 2024
152ad84
Translated using Weblate (Italian)
mymage Jul 15, 2024
69816f0
Translated using Weblate (Italian)
mymage Jan 2, 2025
ed572e7
[IMP] product_variant_configurator: pre-commit auto fixes
BhaveshHeliconia Jan 17, 2025
179ffb0
[MIG] product_variant_configurator: Migration to 18.0
BhaveshHeliconia Jan 17, 2025
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
149 changes: 149 additions & 0 deletions product_variant_configurator/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
============================
Product Variant Configurator
============================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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%2Fproduct--variant-lightgray.png?logo=github
:target: https://github.com/OCA/product-variant/tree/18.0/product_variant_configurator
:alt: OCA/product-variant
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-variant-18-0/product-variant-18-0-product_variant_configurator
: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/product-variant&target_branch=18.0
:alt: Try me on Runboat

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

Provides an abstract model for product variant configuration. It
provides the basic functionality for presenting a table with the
attributes of a template and the possibility to select one of the valid
values. You can try this functionality creating a product variant
directly selecting a product template that has attributes.

This module also prevents in a configurable way the creation of the
product variants when defining the attributes and attribute values of
the product template.

**Table of contents**

.. contents::
:local:

Configuration
=============

(after installing sale_management application)

To configure the creation of the variants behaviour, you need to:

1. Go to ``Sales > Configuration > Settings``, and select "Attributes
and Variants (Set product attributes (e.g. color, size) to sell
variants)" on "Product Catalog" section.
2. Go to ``Sales > Catalog > Products``, and select a product.
3. On the Variants tab edit the value of the field ``Variant Creation``.
4. If you want to stop the automatic creation of the variant, and have
the same behaviour for all the products in the same category, go to
``Inventory > Configuration > Product Categories``, select the
category and check the checkbox
``Don't create variants automatically``.

Usage
=====

(after installing sale_management application)

1. Go to ``Sales > Catalog > Product Variants``.
2. Click on "Create" button for creating a new one.
3. On the field "Product Template", select a product template that has
several attributes.
4. A table with the attributes of the template will appear below.
5. Select all the attribute values and click on "Save" button.
6. A new product variant will be created for that attributes.
7. An error will raise if there's another variant with the same
attribute values or if you haven't filled all the required values.

**Developers**

To use product configurator in your model, you need to:

1. The product.configurator is an abstract model, hence, to be used it
must be inherited in your model:
2. If the model you're inheriting has ``name`` attribute, and it uses
the related parameter you must override it.



::

class AModel(models.Model):
_inherit = ['module.model', 'product.configurator']
name = fields.Char(related="delegated_field.related_field")

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-variant/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/product-variant/issues/new?body=module:%20product_variant_configurator%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
-------

* AvanzOSC
* Tecnativa
* ACSONE SA/NV

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

- Oihane Crucelaegui <[email protected]>
- Pedro M. Baeza <[email protected]>
- Ana Juaristi <[email protected]>
- Thomas Binsfeld <[email protected]>
- Zakaria Makrelouf (acsone) <[email protected]>
- Stéphane Bidoul <[email protected]>
- Laurent Mignon <[email protected]>
- David Vidal <[email protected]>
- Simone Versienti <[email protected]>
- Adria Gil Sorribes <[email protected]>
- Héctor Villarreal Ortega <[email protected]>
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

- Bhavesh Heliconia

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/product-variant <https://github.com/OCA/product-variant/tree/18.0/product_variant_configurator>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions product_variant_configurator/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
26 changes: 26 additions & 0 deletions product_variant_configurator/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2015 Oihane Crucelaegui (AvanzOSC)
# Copyright 2016 ACSONE SA/NV
# Copyright 2017 David Vidal <[email protected]>
# Copyright 2015-2017 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Product Variant Configurator",
"summary": "Provides an abstract model for product variant configuration.",
"version": "18.0.1.0.0",
"category": "Product Variant",
"development_status": "Production/Stable",
"license": "AGPL-3",
"author": "AvanzOSC, Tecnativa, ACSONE SA/NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/product-variant",
"depends": ["product"],
"data": [
"security/product_configurator_security.xml",
"security/ir.model.access.csv",
"views/product_configurator_attribute.xml",
"views/inherited_product_template_views.xml",
"views/inherited_product_product_views.xml",
"views/inherited_product_category_views.xml",
"views/inherited_product_attribute_views.xml",
],
}
Loading